Demo updates for new wx namespace, from Jeff Grimmett
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1,12 +1,19 @@
|
||||
# 11/4/03 - grimmtooth@softhome.net (Jeff Grimmett)
|
||||
#
|
||||
# o Updated for wx namespace
|
||||
#
|
||||
# Note: this module is not a demo per se, but is used by many of
|
||||
# the demo modules for various purposes.
|
||||
|
||||
from wxPython.wx import *
|
||||
import wx
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
|
||||
class ColoredPanel(wxWindow):
|
||||
class ColoredPanel(wx.Window):
|
||||
def __init__(self, parent, color):
|
||||
wxWindow.__init__(self, parent, -1, style = wxSIMPLE_BORDER) #wxRAISED_BORDER)
|
||||
wx.Window.__init__(self, parent, -1, style = wx.SIMPLE_BORDER)
|
||||
self.SetBackgroundColour(color)
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
|
Reference in New Issue
Block a user