]> git.saurik.com Git - wxWidgets.git/blame - wxPython/demo/ColorPanel.py
moved fatal exception handling code to msw/main.cpp from common code
[wxWidgets.git] / wxPython / demo / ColorPanel.py
CommitLineData
8fa876ca
RD
1#
2# Note: this module is not a demo per se, but is used by many of
3# the demo modules for various purposes.
95bfd958 4#
cf694132 5
8fa876ca 6import wx
cf694132
RD
7
8#---------------------------------------------------------------------------
9
10
8fa876ca 11class ColoredPanel(wx.Window):
cf694132 12 def __init__(self, parent, color):
8fa876ca 13 wx.Window.__init__(self, parent, -1, style = wx.SIMPLE_BORDER)
cf694132
RD
14 self.SetBackgroundColour(color)
15
8bf5d46e 16#---------------------------------------------------------------------------
8fa876ca 17