]> git.saurik.com Git - wxWidgets.git/blame - wxPython/demo/ColorPanel.py
doc tweaks, typo fixed, etc.
[wxWidgets.git] / wxPython / demo / ColorPanel.py
CommitLineData
8fa876ca
RD
1# 11/4/03 - grimmtooth@softhome.net (Jeff Grimmett)
2#
3# o Updated for wx namespace
4#
5# Note: this module is not a demo per se, but is used by many of
6# the demo modules for various purposes.
cf694132 7
8fa876ca 8import wx
cf694132
RD
9
10#---------------------------------------------------------------------------
11
12
8fa876ca 13class ColoredPanel(wx.Window):
cf694132 14 def __init__(self, parent, color):
8fa876ca 15 wx.Window.__init__(self, parent, -1, style = wx.SIMPLE_BORDER)
cf694132
RD
16 self.SetBackgroundColour(color)
17
8bf5d46e 18#---------------------------------------------------------------------------
8fa876ca 19