]>
Commit | Line | Data |
---|---|---|
cf694132 RD |
1 | |
2 | from wxPython.wx import * | |
3 | ||
4 | #--------------------------------------------------------------------------- | |
5 | ||
6 | ||
7 | class ColoredPanel(wxWindow): | |
8 | def __init__(self, parent, color): | |
dfef5d51 | 9 | wxWindow.__init__(self, parent, -1, style = wxSIMPLE_BORDER) #wxRAISED_BORDER) |
cf694132 RD |
10 | self.SetBackgroundColour(color) |
11 | ||
8bf5d46e | 12 | #--------------------------------------------------------------------------- |