]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/demo/ColorPanel.py
Final tweaks for 2.1b1
[wxWidgets.git] / utils / wxPython / demo / ColorPanel.py
1 #!/bin/env python
2 #----------------------------------------------------------------------------
3 # Name: ColorPanel.py
4 # Purpose: Testing lots of stuff, controls, window types, etc.
5 #
6 # Author: Robin Dunn & Gary Dumer
7 #
8 # Created:
9 # RCS-ID: $Id$
10 # Copyright: (c) 1998 by Total Control Software
11 # Licence: wxWindows license
12 #----------------------------------------------------------------------------
13
14 from wxPython.wx import *
15
16 #---------------------------------------------------------------------------
17
18
19 class ColoredPanel(wxWindow):
20 def __init__(self, parent, color):
21 wxWindow.__init__(self, parent, -1,
22 wxDefaultPosition, wxDefaultSize, wxRAISED_BORDER)
23 self.SetBackgroundColour(color)
24
25 #---------------------------------------------------------------------------