Change which image is used in the taskbar

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29553 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-09-29 21:52:45 +00:00
parent bbfc7289d6
commit 49090f6f10
3 changed files with 32 additions and 2 deletions

View 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
@@ -1018,7 +1018,7 @@ class DemoTaskBarIcon(wx.TaskBarIcon):
def OnTaskBarChange(self, evt):
icon = self.MakeIcon(images.getRobinImage())
icon = self.MakeIcon(images.getBlom10MaskedImage())
self.SetIcon(icon, "This is a new icon")