wxWidgets/wxPython/demo/ColorPanel.py
Robin Dunn 1e19282e10 Use SetBackgroundStyle for wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39015 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-04 02:08:47 +00:00

20 lines
515 B
Python

#
# Note: this module is not a demo per se, but is used by many of
# the demo modules for various purposes.
#
import wx
#---------------------------------------------------------------------------
class ColoredPanel(wx.Window):
def __init__(self, parent, color):
wx.Window.__init__(self, parent, -1, style = wx.SIMPLE_BORDER)
self.SetBackgroundColour(color)
self.SetBackgroundStyle(wx.BG_STYLE_CUSTOM)
#---------------------------------------------------------------------------