]> git.saurik.com Git - wxWidgets.git/blame - wxPython/demo/ColorPanel.py
Avoid assert on Mac
[wxWidgets.git] / wxPython / demo / ColorPanel.py
CommitLineData
8fa876ca
RD
1#
2# Note: this module is not a demo per se, but is used by many of
3# the demo modules for various purposes.
95bfd958 4#
cf694132 5
8fa876ca 6import wx
cf694132
RD
7
8#---------------------------------------------------------------------------
9
10
8fa876ca 11class ColoredPanel(wx.Window):
cf694132 12 def __init__(self, parent, color):
8fa876ca 13 wx.Window.__init__(self, parent, -1, style = wx.SIMPLE_BORDER)
cf694132 14 self.SetBackgroundColour(color)
6eed24bf
RD
15 if wx.Platform == '__WXGTK__':
16 self.SetBackgroundStyle(wx.BG_STYLE_CUSTOM)
1e19282e 17
cf694132 18
8bf5d46e 19#---------------------------------------------------------------------------
8fa876ca 20