X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e19282e1060d2547e0a294a6821b3954d59dc19..627e49c80cbc3d47c41bed93fdc9d158c888de3a:/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) #---------------------------------------------------------------------------