git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39868
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
def __init__(self, parent, color):
wx.Window.__init__(self, parent, -1, style = wx.SIMPLE_BORDER)
self.SetBackgroundColour(color)
def __init__(self, parent, color):
wx.Window.__init__(self, parent, -1, style = wx.SIMPLE_BORDER)
self.SetBackgroundColour(color)
- self.SetBackgroundStyle(wx.BG_STYLE_CUSTOM)
+ if wx.Platform == '__WXGTK__':
+ self.SetBackgroundStyle(wx.BG_STYLE_CUSTOM)
#---------------------------------------------------------------------------
#---------------------------------------------------------------------------