def __init__(self, *args, **kwargs): # this should be popped before superclass initializer. self.datasource = kwargs.pop('datasource') default_style = (wx.aui.AUI_NB_TOP|wx.aui.AUI_NB_TAB_MOVE| wx.aui.AUI_NB_SCROLL_BUTTONS|wx.aui.AUI_NB_CLOSE_BUTTON) kwargs['style'] = default_style|kwargs.get('style', 0) AuiNotebookPlus.__init__(self, *args, **kwargs)
def __init__(self, *args, **kwargs): # this should be popped before superclass initializer. self.datasource = kwargs.pop('datasource') default_style = (wx.aui.AUI_NB_TOP | wx.aui.AUI_NB_TAB_MOVE | wx.aui.AUI_NB_SCROLL_BUTTONS | wx.aui.AUI_NB_CLOSE_BUTTON) kwargs['style'] = default_style | kwargs.get('style', 0) AuiNotebookPlus.__init__(self, *args, **kwargs)
def create_page(self, page_class, page_name, datasource=None, **kwargs): kwargs['datasource'] = self.datasource return AuiNotebookPlus.create_page(self, page_class, page_name, **kwargs)