]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/ColorPanel.py
merged 2.2 branch
[wxWidgets.git] / wxPython / demo / ColorPanel.py
diff --git a/wxPython/demo/ColorPanel.py b/wxPython/demo/ColorPanel.py
new file mode 100644 (file)
index 0000000..f90a8b0
--- /dev/null
@@ -0,0 +1,13 @@
+
+from wxPython.wx import *
+
+#---------------------------------------------------------------------------
+
+
+class ColoredPanel(wxWindow):
+    def __init__(self, parent, color):
+        wxWindow.__init__(self, parent, -1,
+                          wxDefaultPosition, wxDefaultSize, wxRAISED_BORDER)
+        self.SetBackgroundColour(color)
+
+#---------------------------------------------------------------------------