]> git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/ColorPanel.py
fixed extraneous scrolling when scrollbars are added/removed (patch 788026; bug 746618)
[wxWidgets.git] / wxPython / demo / ColorPanel.py
1
2 from wxPython.wx import *
3
4 #---------------------------------------------------------------------------
5
6
7 class ColoredPanel(wxWindow):
8 def __init__(self, parent, color):
9 wxWindow.__init__(self, parent, -1, style = wxSIMPLE_BORDER) #wxRAISED_BORDER)
10 self.SetBackgroundColour(color)
11
12 #---------------------------------------------------------------------------