]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/ColorPanel.py
Avoid assert on Mac
[wxWidgets.git] / wxPython / demo / ColorPanel.py
index a5b6a91cc7181629265d4e48fddf36b32a772a8b..29ef92c1c148c3c915654ddbeac7f9281816aa00 100644 (file)
@@ -12,6 +12,9 @@ class ColoredPanel(wx.Window):
     def __init__(self, parent, color):
         wx.Window.__init__(self, parent, -1, style = wx.SIMPLE_BORDER)
         self.SetBackgroundColour(color)
+        if wx.Platform == '__WXGTK__':
+            self.SetBackgroundStyle(wx.BG_STYLE_CUSTOM)
+
 
 #---------------------------------------------------------------------------