File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1349,24 +1349,18 @@ def _load_bitmap(filename):
13491349 return bmp
13501350
13511351
1352- _FRAME_ICON = None
1353-
1354-
13551352def _set_frame_icon (frame ):
13561353 # set frame icon
1357- global _FRAME_ICON
1358- if not _FRAME_ICON :
1359- _FRAME_ICON = bundle = wx .IconBundle ()
1360- for image in ('matplotlib.png' , 'matplotlib_large.png' ):
1361- image = os .path .join (matplotlib .rcParams ['datapath' ], 'images' ,
1362- image )
1363- if not os .path .exists (image ):
1364- continue
1365- icon = wx .Icon (_load_bitmap (image ))
1366- if not icon .IsOk ():
1367- return
1368- bundle .AddIcon (icon )
1369- frame .SetIcons (_FRAME_ICON )
1354+ bundle = wx .IconBundle ()
1355+ for image in ('matplotlib.png' , 'matplotlib_large.png' ):
1356+ image = os .path .join (matplotlib .rcParams ['datapath' ], 'images' , image )
1357+ if not os .path .exists (image ):
1358+ continue
1359+ icon = wx .Icon (_load_bitmap (image ))
1360+ if not icon .IsOk ():
1361+ return
1362+ bundle .AddIcon (icon )
1363+ frame .SetIcons (bundle )
13701364
13711365
13721366class MenuButtonWx (wx .Button ):
You can’t perform that action at this time.
0 commit comments