Skip to content

Commit

Permalink
only add dock image to non win32 runs
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskiehl committed Sep 22, 2019
1 parent 7c9e3c4 commit 66f154d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions gooey/gui/containers/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,12 @@ def layoutComponent(self):
# Program Icon (Windows)
icon = wx.Icon(self.buildSpec['images']['programIcon'], wx.BITMAP_TYPE_PNG)
self.SetIcon(icon)
# OSX needs to have its taskbar icon explicitly set
# bizarrely, wx requires the TaskBarIcon to be attached to the Frame
# as instance data (self.). Otherwise, it will not render correctly.
self.taskbarIcon = TaskBarIcon(iconType=wx.adv.TBI_DOCK)
self.taskbarIcon.SetIcon(icon)
if sys.platform != 'win32':
# OSX needs to have its taskbar icon explicitly set
# bizarrely, wx requires the TaskBarIcon to be attached to the Frame
# as instance data (self.). Otherwise, it will not render correctly.
self.taskbarIcon = TaskBarIcon(iconType=wx.adv.TBI_DOCK)
self.taskbarIcon.SetIcon(icon)



Expand Down

0 comments on commit 66f154d

Please sign in to comment.