diff --git a/gooey/gui/containers/application.py b/gooey/gui/containers/application.py index c44d72e8..9147b267 100644 --- a/gooey/gui/containers/application.py +++ b/gooey/gui/containers/application.py @@ -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)