to it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39866
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
CLASS_HEADER = """\
class xrc%(windowName)s(wx.%(windowClass)s):
CLASS_HEADER = """\
class xrc%(windowName)s(wx.%(windowClass)s):
+ def PreCreate(self, pre):
\"\"\" This function is called during the class's initialization.
Override it for custom setup before the window is created usually to
\"\"\" This function is called during the class's initialization.
Override it for custom setup before the window is created usually to
def __init__(self, parent):
# Two stage creation (see http://wiki.wxpython.org/index.cgi/TwoStageCreation)
pre = wx.Pre%(windowClass)s()
def __init__(self, parent):
# Two stage creation (see http://wiki.wxpython.org/index.cgi/TwoStageCreation)
pre = wx.Pre%(windowClass)s()
get_resources().LoadOn%(windowClass)s(pre, parent, "%(windowName)s")
get_resources().LoadOn%(windowClass)s(pre, parent, "%(windowName)s")
self.PostCreate(pre)
# Define variables for the controls
self.PostCreate(pre)
# Define variables for the controls