Mar-25-2020, 05:09 PM
The code works if I do this:
May I offer a suggestion? The game would be easier to play if all five dice were always visible. You have a great way of selecting which dice you want to freeze, why not use that same mechanism for putting dice back into the cup. If I want to reroll a frozen die I click on it and the red freeze frame disappears.
global checkvalue1 checkvalue1 = IntVar(window) if len(diceclicked1) != 0: Checkbutton(window, text=diceclicked1, variable=checkvalue1).grid(row=1,sticky=W)I am not sure why the master widget argument is required, but your small example worked because there was only one window and something about having multiple windows messes this up.
May I offer a suggestion? The game would be easier to play if all five dice were always visible. You have a great way of selecting which dice you want to freeze, why not use that same mechanism for putting dice back into the cup. If I want to reroll a frozen die I click on it and the red freeze frame disappears.