mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 03:20:08 +01:00
Use wx.Icon instead of wx.IconFromBitmap
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user