Hello, im starting a new project, about the game who wants to be a millionaire, so In the beggining I have a Start Button, but I want to know how to set the parameters of the mouse click to be only within the range of the START button.
heres what I got so far:
from graphics import *
win = GraphWin("Who wants to be a millionaire", 600, 400)
win.setBackground('Black')
# First Greeting
centertxt = Point(300,100)
title1 = Text(centertxt, "Who wants to be a Millionaire GAME!")
title1.setSize(24)
title1.setStyle('bold')
title1.setTextColor('White')
title1.draw(win)
# Start Button
StartRect = Rectangle(Point(220,200),Point(400,250))
StartRect.draw(win)
StartRect.setOutline('White')
centerstart = Point(310,225)
starttxt = Text(centerstart, "START")
starttxt.setSize(18)
starttxt.setStyle('bold')
starttxt.setTextColor('White')
starttxt.draw(win)
win.getMouse(centerstart)