Hello. Beginner here so bear with me. I'm creating a game as a final project for my university but at the moment I'm stuck. I'm just wondering how you go about making buttons. In the code, I have created four rectangles which will eventually be able to be clicked on. I'm just wondering if there is a way to make a button out of the rectangles that are there. Also, is there any way to write text into the middle of the rectangles rather than doing it manually with code such as Text(point(x,y))... Any suggestions on that or what I have so far would be appreciated. Thanks everyone.
from graphics import *
win = GraphWin("Your Choices", 800,800)
win.setBackground("Red4")
RecAdd = Rectangle(Point(100,50), Point(700,150))
RecAdd.setFill("Aquamarine")
RecAdd.draw(win)
RecAdd = Rectangle(Point(100,200), Point(700,300))
RecAdd.setFill("Aquamarine")
RecAdd.draw(win)
RecAdd = Rectangle(Point(100,350), Point(700,450))
RecAdd.setFill("Aquamarine")
RecAdd.draw(win)
RecAdd = Rectangle(Point(100,500), Point(700,600))
RecAdd.setFill("Aquamarine")
RecAdd.draw(win)
Text(Point(400,100), "Addition").draw(win)
Text(Point(400,250), "Subtraction").draw(win)
Text(Point(400,400), "Division").draw(win)
Text(Point(400,550), "Multiplication").draw(win)