]>
Commit | Line | Data |
---|---|---|
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. | |
7 | ||
8 | import wx | |
9 | ||
10 | #--------------------------------------------------------------------------- | |
11 | ||
12 | ||
13 | class ColoredPanel(wx.Window): | |
14 | def __init__(self, parent, color): | |
15 | wx.Window.__init__(self, parent, -1, style = wx.SIMPLE_BORDER) | |
16 | self.SetBackgroundColour(color) | |
17 | ||
18 | #--------------------------------------------------------------------------- | |
19 |