X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..27d98837f3b5589c40137f4a1fa75d28cde75c46:/wxPython/demo/ColorPanel.py

diff --git a/wxPython/demo/ColorPanel.py b/wxPython/demo/ColorPanel.py
index f90a8b0e73..3bb606066d 100644
--- a/wxPython/demo/ColorPanel.py
+++ b/wxPython/demo/ColorPanel.py
@@ -1,13 +1,19 @@
+#
+# Note: this module is not a demo per se, but is used by many of 
+# the demo modules for various purposes.
+#
 
-from wxPython.wx import *
+import wx
 
 #---------------------------------------------------------------------------
 
 
-class ColoredPanel(wxWindow):
+class ColoredPanel(wx.Window):
     def __init__(self, parent, color):
-        wxWindow.__init__(self, parent, -1,
-                          wxDefaultPosition, wxDefaultSize, wxRAISED_BORDER)
+        wx.Window.__init__(self, parent, -1, style = wx.SIMPLE_BORDER)
         self.SetBackgroundColour(color)
+        self.SetBackgroundStyle(wx.BG_STYLE_CUSTOM)
+
 
 #---------------------------------------------------------------------------
+