X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ca298c88524c5c44c38d71af0c1f8ab81543e6a9..cf694132f1c28509a9f84377ce8d374bae4177ad:/utils/wxPython/demo/ColorPanel.py diff --git a/utils/wxPython/demo/ColorPanel.py b/utils/wxPython/demo/ColorPanel.py new file mode 100644 index 0000000000..42332ac9ec --- /dev/null +++ b/utils/wxPython/demo/ColorPanel.py @@ -0,0 +1,25 @@ +#!/bin/env python +#---------------------------------------------------------------------------- +# Name: ColorPanel.py +# Purpose: Testing lots of stuff, controls, window types, etc. +# +# Author: Robin Dunn & Gary Dumer +# +# Created: +# RCS-ID: $Id$ +# Copyright: (c) 1998 by Total Control Software +# Licence: wxWindows license +#---------------------------------------------------------------------------- + +from wxPython.wx import * + +#--------------------------------------------------------------------------- + + +class ColoredPanel(wxWindow): + def __init__(self, parent, color): + wxWindow.__init__(self, parent, -1, + wxDefaultPosition, wxDefaultSize, wxRAISED_BORDER) + self.SetBackgroundColour(color) + +#--------------------------------------------------------------------------- \ No newline at end of file