[issue29402] Problem with Checkbutton and duplicate last name components

2017-03-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a sample patch that makes implicit variables for checkbuttons unique. This is one of ways to solve this issue. But I'm not sure that this issue needs to be solved at all. In real applications Checkbutton() is called with the variable argument, otherw

[issue29402] Problem with Checkbutton and duplicate last name components

2017-03-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29402] Problem with Checkbutton and duplicate last name components

2017-02-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The variable option of the checkbutton widget specifies the name of a global variable to set to indicate whether or not this button is selected. It defaults to the name of the button within its parent (i.e. the last element of the button window's path name).

[issue29402] Problem with Checkbutton and duplicate last name components

2017-01-31 Thread Terry J. Reedy
New submission from Terry J. Reedy: Report and code from George Trojan on python-list. import tkinter class GUI(tkinter.Tk): def __init__(self): tkinter.Tk.__init__(self) frame = tkinter.Frame(self) for tag in ('A', 'B'): w = tkinter.Checkbutton(frame, te