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)
|
2006-06-27 18:39:31 -04:00
|
|
|
if wx.Platform == '__WXGTK__':
|
|
|
|
self.SetBackgroundStyle(wx.BG_STYLE_CUSTOM)
|
2006-05-03 22:08:47 -04:00
|
|
|
|
1999-04-29 23:29:54 -04:00
|
|
|
|
1999-07-31 03:56:15 -04:00
|
|
|
#---------------------------------------------------------------------------
|
2003-12-08 20:23:28 -05:00
|
|
|
|