예제 #1
0
파일: panel.py 프로젝트: ecell/ecell4-vis
 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)
예제 #2
0
 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)
예제 #3
0
 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)
예제 #4
0
파일: panel.py 프로젝트: ecell/ecell4-vis
 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)