]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't use custom bg style except on wxGTK
authorRobin Dunn <robin@alldunn.com>
Tue, 27 Jun 2006 22:39:31 +0000 (22:39 +0000)
committerRobin Dunn <robin@alldunn.com>
Tue, 27 Jun 2006 22:39:31 +0000 (22:39 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39868 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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