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

Skip to content

Commit b1452eb

Browse files
authored
Merge pull request #18263 from meeseeksmachine/auto-backport-of-pr-18260-on-v3.3.x
Backport PR #18260 on branch v3.3.x (Add parent widget to IntVar)
2 parents 6c1e8e0 + e957fc8 commit b1452eb

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
@@ -575,7 +575,7 @@ def _Button(self, text, image_file, toggle, command):
575575
# other near checkbuttons
576576
# https://bugs.python.org/issue29402
577577
# https://bugs.python.org/issue25684
578-
var = tk.IntVar()
578+
var = tk.IntVar(master=self)
579579
b = tk.Checkbutton(
580580
master=self, text=text, image=image, command=command,
581581
indicatoron=False, variable=var)

0 commit comments

Comments
 (0)