]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/ColorPanel.py
added missing button state
[wxWidgets.git] / wxPython / demo / ColorPanel.py
index 3bb606066de49f079a17c4889a11378ac6b0668b..29ef92c1c148c3c915654ddbeac7f9281816aa00 100644 (file)
@@ -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)
 
 
 #---------------------------------------------------------------------------