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