Files
Phoenix/demo/ColorPanel.py
Robin Dunn 543fc796ab Merge pull request #939 from RobinD42/fix-issue888
Removed the wx.BookCtrlBase.RemovePage workaround
(cherry picked from commit 11cc4d5c25)
2018-07-20 16:42:37 -07:00

20 lines
482 B
Python

#!/usr/bin/env 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)
#---------------------------------------------------------------------------