]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/ColorPanel.py
apparently the check for too small rect is needed not only with wxNB_MULTILINE (see...
[wxWidgets.git] / wxPython / demo / ColorPanel.py
index f7dc76ba0b696132e4aaf6b18af980886ad036a7..a5b6a91cc7181629265d4e48fddf36b32a772a8b 100644 (file)
@@ -1,12 +1,17 @@
+#
+# 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, style = wxSIMPLE_BORDER) #wxRAISED_BORDER)
+        wx.Window.__init__(self, parent, -1, style = wx.SIMPLE_BORDER)
         self.SetBackgroundColour(color)
 
 #---------------------------------------------------------------------------
+