File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -192,11 +192,12 @@ def layoutComponent(self):
192192 # Program Icon (Windows)
193193 icon = wx .Icon (self .buildSpec ['images' ]['programIcon' ], wx .BITMAP_TYPE_PNG )
194194 self .SetIcon (icon )
195- # OSX needs to have its taskbar icon explicitly set
196- # bizarrely, wx requires the TaskBarIcon to be attached to the Frame
197- # as instance data (self.). Otherwise, it will not render correctly.
198- self .taskbarIcon = TaskBarIcon (iconType = wx .adv .TBI_DOCK )
199- self .taskbarIcon .SetIcon (icon )
195+ if sys .platform != 'win32' :
196+ # OSX needs to have its taskbar icon explicitly set
197+ # bizarrely, wx requires the TaskBarIcon to be attached to the Frame
198+ # as instance data (self.). Otherwise, it will not render correctly.
199+ self .taskbarIcon = TaskBarIcon (iconType = wx .adv .TBI_DOCK )
200+ self .taskbarIcon .SetIcon (icon )
200201
201202
202203
You can’t perform that action at this time.
0 commit comments