if "wxMSW" in wx.PlatformInfo:
img.Scale(16, 16)
elif "wxGTK" in wx.PlatformInfo:
- img.Scale(22, 22)
+ img.Scale(20, 20)
# wxMac can be any size upto 128.128....
icon = wx.IconFromBitmap(img.ConvertToBitmap() )
return icon
def OnTaskBarClose(self, evt):
self.frame.Close()
- # because of the way wx.TaskBarIcon.PopupMenu is implemented we have to
- # prod the main idle handler a bit to get the window to actually close
- wx.GetApp().ProcessIdle()
-
def OnTaskBarChange(self, evt):
- icon = self.MakeIcon(images.getRobinImage())
+ icon = self.MakeIcon(images.getBlom10MaskedImage())
self.SetIcon(icon, "This is a new icon")