Skip to content

Commit 5129d70

Browse files
jklymakMeeseeksDev[bot]
authored andcommitted
Backport PR #10681: Fix tk icon loading.
1 parent b02e736 commit 5129d70

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

0 commit comments

Comments
 (0)