def __init__(self, parent=None, **kwargs):
        "Initialize this instance."
        
        # sane defaults (do not overwrite them if rebuilding):
        if not hasattr(self, "_menubar"):
            self._menubar = None
            self._statusbar = None
        
        # call generic component initialization:
        ControlSuper.__init__(self, parent, **kwargs)
        self.app = wx.GetApp()
        
        # AJT 20.11.2001
        # Add icon creation
        #self._setIcon(aBgRsrc)

        # 2001-11-08
        # hack to preserve the statusbar text
        #if self.statusbar is not None and self.menubar is not None:
        #    wx.EVT_MENU_HIGHLIGHT_ALL(self, self.menu_highlight)

        if parent is None:
            self.app.SetTopWindow(self.wx_obj)

        wx.CallAfter(self.wx_obj.InitDialog)
        wx.CallAfter(self.wx_obj.Layout)
def __init__ ( self , parent = None , ** kwargs ) : if not hasattr ( self , "_menubar" ) : self . _menubar = None self . _statusbar = None ControlSuper . __init__ ( self , parent , ** kwargs ) self . app = wx . GetApp ( ) if parent is None : self . app . SetTopWindow ( self . wx_obj ) wx . CallAfter ( self . wx_obj . InitDialog ) wx . CallAfter ( self . wx_obj . Layout )
Initialize this instance.