Use PlatformInfo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26177 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
4c41721418
commit
20ed8fab85
@ -25,7 +25,7 @@ class TestPanel(wx.Panel):
|
|||||||
(25,25))
|
(25,25))
|
||||||
|
|
||||||
bmp = wx.Bitmap(opj('bitmaps/toucan.png'))
|
bmp = wx.Bitmap(opj('bitmaps/toucan.png'))
|
||||||
if wx.Platform == "__WXGTK__":
|
if "__WXGTK__" in wx.PlatformInfo:
|
||||||
# try to make up for it a bit...
|
# try to make up for it a bit...
|
||||||
bmp.SetMaskColour("black")
|
bmp.SetMaskColour("black")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user