X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e19282e1060d2547e0a294a6821b3954d59dc19..fd29f9ad6560773a9c487f77cff55ee5130bb5a7:/wxPython/demo/ColorPanel.py diff --git a/wxPython/demo/ColorPanel.py b/wxPython/demo/ColorPanel.py index 3bb606066d..29ef92c1c1 100644 --- a/wxPython/demo/ColorPanel.py +++ b/wxPython/demo/ColorPanel.py @@ -12,7 +12,8 @@ class ColoredPanel(wx.Window): 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) #---------------------------------------------------------------------------