Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3abdfa9

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

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎lib/matplotlib/backends/_backend_tk.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/_backend_tk.py
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.