X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8a693e6e0460b6b3c32e4b6f114a3ab7b7cd24ea..f6bcfd974ef26faf6f91a62cac09827e09463fd1:/wxPython/demo/ColorPanel.py diff --git a/wxPython/demo/ColorPanel.py b/wxPython/demo/ColorPanel.py new file mode 100644 index 0000000000..f90a8b0e73 --- /dev/null +++ b/wxPython/demo/ColorPanel.py @@ -0,0 +1,13 @@ + +from wxPython.wx import * + +#--------------------------------------------------------------------------- + + +class ColoredPanel(wxWindow): + def __init__(self, parent, color): + wxWindow.__init__(self, parent, -1, + wxDefaultPosition, wxDefaultSize, wxRAISED_BORDER) + self.SetBackgroundColour(color) + +#---------------------------------------------------------------------------