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

Skip to content

Commit 1d311f2

Browse files
authored
Merge pull request #10694 from matplotlib/auto-backport-of-pr-10681
Backport PR #10681 on branch v2.2.x
2 parents 0e1e260 + 5129d70 commit 1d311f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)