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