]>
git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/demo/ColorPanel.py
2 from wxPython
.wx
import *
4 #---------------------------------------------------------------------------
7 class ColoredPanel(wxWindow
):
8 def __init__(self
, parent
, color
):
9 wxWindow
.__init
__(self
, parent
, -1,
10 wxDefaultPosition
, wxDefaultSize
, wxRAISED_BORDER
)
11 self
.SetBackgroundColour(color
)
13 #---------------------------------------------------------------------------