Hello Guys I am trying to make a game with Tkinter. It involves selecting different options from a set of buttons. I created a root for the window, and am done with all the basic game programming. Its a football league simulator allowing players to select a team and choose what they want to do when their team match comes up.
There is a minor problem regarding the buttons I want to create for the User to click.
Each time a game featuring the selected team comes up, I create the buttons. Each button click refers to a certain method in the Frame object.
But I want one of the buttons to return control to the calling function. That has not been possible. I used this command
self.play_bttn=Button(self, text="Play game", command=return) self.play_bttn.grid()
It didnt work. Is there any way of making a button do nothing but return to the calling function. The next few lines of the calling function are related to simulating the game? thanks in advance