Browse Source

only add dock image to non win32 runs

pull/473/head 1.0.3
Chris 5 years ago
parent
commit
66f154decb
1 changed files with 6 additions and 5 deletions
  1. 11
      gooey/gui/containers/application.py

11
gooey/gui/containers/application.py

@ -192,11 +192,12 @@ class GooeyApplication(wx.Frame):
# 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)

Loading…
Cancel
Save