X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1cc18e15f4fcb878fbda3c8ce615521e320d7bf6..ea5dbc97a36a5dd47d983fc7d7b0a43d00da80db:/wxPython/demo/Main.py diff --git a/wxPython/demo/Main.py b/wxPython/demo/Main.py index 5edc12806a..d679dc2cb6 100644 --- a/wxPython/demo/Main.py +++ b/wxPython/demo/Main.py @@ -995,7 +995,7 @@ class DemoTaskBarIcon(wx.TaskBarIcon): 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 @@ -1012,13 +1012,9 @@ class DemoTaskBarIcon(wx.TaskBarIcon): 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")