]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/Main.py
fixed menu destruction if it was removed from menubar with Remove
[wxWidgets.git] / wxPython / demo / Main.py
index 5edc12806a9c110c62fffdf5cca1eb8ced376599..d679dc2cb6028537d8315970eb26b07bc2816871 100644 (file)
@@ -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")