]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/ColorPanel.py
correct access for virtuals
[wxWidgets.git] / wxPython / demo / ColorPanel.py
index 72f725842b38a0593948ea368227e933bde57c1e..3bb606066de49f079a17c4889a11378ac6b0668b 100644 (file)
@@ -1,9 +1,7 @@
-# 11/4/03 - grimmtooth@softhome.net (Jeff Grimmett)
-# 
-# o Updated for wx namespace
 #
 # Note: this module is not a demo per se, but is used by many of 
 # the demo modules for various purposes.
+#
 
 import wx
 
@@ -14,6 +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)
+
 
 #---------------------------------------------------------------------------