X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a253aa20446ade206fa399be2acde4149411f678..d2638b42a831a5eaebb25f4cdde220ae668df80f:/wxPython/demo/Main.py diff --git a/wxPython/demo/Main.py b/wxPython/demo/Main.py index 438245d456..bd75b35f5b 100644 --- a/wxPython/demo/Main.py +++ b/wxPython/demo/Main.py @@ -439,8 +439,10 @@ class wxPythonDemo(wx.Frame): icon = images.getMondrianIcon() self.SetIcon(icon) - if wx.Platform == '__WXMSW__': + if wx.Platform != '__WXMAC__': # setup a taskbar icon, and catch some events from it + icon = wx.IconFromBitmap( + images.getMondrianImage().Scale(16,16).ConvertToBitmap() ) self.tbicon = wx.TaskBarIcon() self.tbicon.SetIcon(icon, "wxPython Demo") self.tbicon.Bind(wx.EVT_TASKBAR_LEFT_DCLICK, self.OnTaskBarActivate)