Use wx.Icon instead of wx.IconFromBitmap

This commit is contained in:
Ben Hagen
2017-07-09 13:14:38 +02:00
committed by GitHub
parent 56e6806a9f
commit ba7f63cba4

View File

@@ -1354,7 +1354,7 @@ class DemoTaskBarIcon(TaskBarIcon):
elif "wxGTK" in wx.PlatformInfo:
img = img.Scale(22, 22)
# wxMac can be any size upto 128x128, so leave the source img alone....
icon = wx.IconFromBitmap(img.ConvertToBitmap())
icon = wx.Icon(img.ConvertToBitmap())
return icon