X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e19282e1060d2547e0a294a6821b3954d59dc19..619dcb095efac5a79b6bd1e7c65d62d651ef48fc:/wxPython/demo/ColorPanel.py?ds=inline

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)
 
 
 #---------------------------------------------------------------------------