Python Forum
Trying to get help with checkbuttons
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trying to get help with checkbuttons
#2
The code works if I do this:
    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.
Reply


Messages In This Thread
RE: Trying to get help with checkbuttons - by deanhystad - Mar-25-2020, 05:09 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Checkbuttons Variables Truth Value Jimmy_Py 5 2,646 Apr-30-2020, 02:10 AM
Last Post: Jimmy_Py

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020