]> git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/ColorPanel.py
Have SetSizerProps internally handle the assignment of growable rows and cols.
[wxWidgets.git] / wxPython / demo / ColorPanel.py
1 #
2 # Note: this module is not a demo per se, but is used by many of
3 # the demo modules for various purposes.
4 #
5
6 import wx
7
8 #---------------------------------------------------------------------------
9
10
11 class ColoredPanel(wx.Window):
12 def __init__(self, parent, color):
13 wx.Window.__init__(self, parent, -1, style = wx.SIMPLE_BORDER)
14 self.SetBackgroundColour(color)
15 if wx.Platform == '__WXGTK__':
16 self.SetBackgroundStyle(wx.BG_STYLE_CUSTOM)
17
18
19 #---------------------------------------------------------------------------
20