[issue38898] Tkinter checkbutton switch on and off together

2019-11-23 Thread zaza hohonini


zaza hohonini  added the comment:

Hello,

I have done a bit of digging and found out that this behavior appeared in 
python version 3.6.0 alpha2. I think it is related to bpo-27025 
(https://bugs.python.org/issue27025) that changed the way that widgets are 
named. It is my impression that the code that determines which checkbutton 
should have its appearance changed has not been changed accordingly. 

I also observe that if I use variable=tk.IntVar() as additional argument to 
tk.Checkbutton, normal behavior is restored. This is the easiest work around.

--
versions: +Python 3.6, Python 3.7

___
Python tracker 
<https://bugs.python.org/issue38898>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38898] Tkinter checkbutton switch on and off together

2019-11-22 Thread zaza hohonini


New submission from zaza hohonini :

Hello,

I am running python 3.8.0 and found a problem where multiple checkbuttons get 
switched when I click one. From observing it looks like each first check button 
in a frame is linked. And each second, etc. I ran the some program in python 
2.7.17 and it works as expected.

Basic program that show the problem:

import tkinter as tk

class Hello(tk.Frame): 
def __init__(self, parent=None):
tk.Frame.__init__(self, parent)
check = tk.Checkbutton(self, text='Checkbutton')
check.pack()

root = tk.Tk()
Hello(root).pack()
Hello(root).pack()
root.mainloop()

--
components: Tkinter
files: tkinter-checkbutton-bug.ogv
messages: 357323
nosy: zaza hohonini
priority: normal
severity: normal
status: open
title: Tkinter checkbutton switch on and off together
versions: Python 3.8
Added file: https://bugs.python.org/file48741/tkinter-checkbutton-bug.ogv

___
Python tracker 
<https://bugs.python.org/issue38898>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com