Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3abdfa9

Browse files
authored
Merge pull request #18260 from richardsheridan/intvar_parent_fix
Add parent widget to IntVar
2 parents ade20db + 1b7f1bb commit 3abdfa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/_backend_tk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ def _Button(self, text, image_file, toggle, command):
570570
# other near checkbuttons
571571
# https://bugs.python.org/issue29402
572572
# https://bugs.python.org/issue25684
573-
var = tk.IntVar()
573+
var = tk.IntVar(master=self)
574574
b = tk.Checkbutton(
575575
master=self, text=text, image=image, command=command,
576576
indicatoron=False, variable=var)

0 commit comments

Comments
 (0)