2003-12-08 20:23:28 -05:00
|
|
|
#
|
|
|
|
# Note: this module is not a demo per se, but is used by many of
|
|
|
|
# the demo modules for various purposes.
|
2004-01-12 22:17:17 -05:00
|
|
|
#
|
1999-04-29 23:29:54 -04:00
|
|
|
|
2003-12-08 20:23:28 -05:00
|
|
|
import wx
|
1999-04-29 23:29:54 -04:00
|
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
2003-12-08 20:23:28 -05:00
|
|
|
class ColoredPanel(wx.Window):
|
1999-04-29 23:29:54 -04:00
|
|
|
def __init__(self, parent, color):
|
2003-12-08 20:23:28 -05:00
|
|
|
wx.Window.__init__(self, parent, -1, style = wx.SIMPLE_BORDER)
|
1999-04-29 23:29:54 -04:00
|
|
|
self.SetBackgroundColour(color)
|
|
|
|
|
1999-07-31 03:56:15 -04:00
|
|
|
#---------------------------------------------------------------------------
|
2003-12-08 20:23:28 -05:00
|
|
|
|