Skip to content

Commit 6355088

Browse files
committed
Fix tk icon loading.
1 parent 42055ad commit 6355088

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
@@ -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)