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 6355088

Browse filesBrowse files
committed
Fix tk icon loading.
1 parent 42055ad commit 6355088
Copy full SHA for 6355088

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
@@ -977,7 +977,7 @@ def new_figure_manager_given_figure(cls, num, figure):
977977
rcParams['datapath'], 'images', 'matplotlib.ppm')
978978
icon_img = Tk.PhotoImage(file=icon_fname)
979979
try:
980-
window.tk.call('wm', 'foobar', window._w, icon_img)
980+
window.tk.call('wm', 'iconphoto', window._w, icon_img)
981981
except Exception as exc:
982982
# log the failure (due e.g. to Tk version), but carry on
983983
_log.info('Could not load matplotlib icon: %s', exc)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.