Hey guys, I have this code at the end of my python game:
root = Tk()
root.title("Jack's Game")
root.resizable(0,0)
root.configure(bg="green")
game = Board(root, width=8, height=8, letters=10)
game.mainloop()
And I also have a button somewhere above. I want to have function for the command="xxx"
. What I want the function to do is restart the game with the following changes:
game = Board(root, width=16, height=16, letters=40)
Can somebody help me code a similar function... Thanks for any help...