def __init__(self, parent, properties=None, attProperties=None, *args, **kwargs): self._baseClass = dDockTabs preClass = aui.AuiNotebook newStyle = (aui.AUI_NB_TOP | aui.AUI_NB_SCROLL_BUTTONS) self._movableTabs = self._extractKey( (properties, attProperties, kwargs), "MovableTabs", True) if self._movableTabs: newStyle = newStyle | aui.AUI_NB_TAB_MOVE | aui.AUI_NB_TAB_SPLIT if not _USE_AGW: newStyle = newStyle | aui.AUI_NB_CLOSE_ON_ALL_TABS newStyle = newStyle | kwargs.pop("style", 0) | kwargs.pop( "agwStyle", 0) if _USE_AGW: kwargs["agwStyle"] = newStyle else: kwargs["style"] = newStyle dPageFrameMixin.__init__(self, preClass, parent, properties=properties, attProperties=attProperties, *args, **kwargs)
def __init__(self, parent, properties=None, attProperties=None, *args, **kwargs): self._baseClass = dPageSelect preClass = wx.PreChoicebook dPageFrameMixin.__init__(self, preClass, parent, properties=properties, attProperties=attProperties, *args, **kwargs) # Dictionary for tracking images by key value self._imageList = {}
def __init__(self, parent, properties=None, attProperties=None, *args, **kwargs): self._baseClass = dPageList preClass = wx.PreListbook # Dictionary for tracking images by key value self._imageList = {} dPageFrameMixin.__init__(self, preClass, parent, properties=properties, attProperties=attProperties, *args, **kwargs) self.Bind(wx.EVT_LIST_ITEM_MIDDLE_CLICK, self.__onWxMiddleClick) self.Bind(wx.EVT_LIST_ITEM_RIGHT_CLICK, self.__onWxRightClick)
def __init__(self, parent, properties=None, attProperties=None, *args, **kwargs): self._baseClass = dPageStyled preClass = fnb.FlatNotebook # For some reason this class always opens to the *last* page, unlike all other # paged controls. This will make it open to the first page, unless otherwise # explicitly set. selpg = int(self._extractKey((properties, attProperties, kwargs), "SelectedPageNumber", defaultVal=0)) dPageFrameMixin.__init__(self, preClass, parent, properties=properties, attProperties=attProperties, *args, **kwargs) dabo.ui.setAfter(self, "SelectedPageNumber", selpg)
def __init__(self, parent, properties=None, attProperties=None, *args, **kwargs): self._baseClass = dPageToolBar preClass = wx.PreToolbook dPageFrameMixin.__init__(self, preClass, parent, properties=properties, attProperties=attProperties, *args, **kwargs)
def __init__(self, parent, properties=None, attProperties=None, *args, **kwargs): self._baseClass = dDockTabs preClass = aui.AuiNotebook newStyle = (aui.AUI_NB_TOP | aui.AUI_NB_SCROLL_BUTTONS) self._movableTabs = self._extractKey((properties, attProperties, kwargs), "MovableTabs", True) if self._movableTabs: newStyle = newStyle | aui.AUI_NB_TAB_MOVE | aui.AUI_NB_TAB_SPLIT if not _USE_AGW: newStyle = newStyle | aui.AUI_NB_CLOSE_ON_ALL_TABS newStyle = newStyle | kwargs.pop("style", 0) | kwargs.pop("agwStyle", 0) if _USE_AGW: kwargs["agwStyle"] = newStyle else: kwargs["style"] = newStyle dPageFrameMixin.__init__(self, preClass, parent, properties=properties, attProperties=attProperties, *args, **kwargs)
def __init__(self, parent, properties=None, attProperties=None, *args, **kwargs): self._baseClass = dPageStyled preClass = fnb.FlatNotebook # For some reason this class always opens to the *last* page, unlike all other # paged controls. This will make it open to the first page, unless otherwise # explicitly set. selpg = int( self._extractKey((properties, attProperties, kwargs), "SelectedPageNumber", defaultVal=0)) dPageFrameMixin.__init__(self, preClass, parent, properties=properties, attProperties=attProperties, *args, **kwargs) dabo.ui.setAfter(self, "SelectedPageNumber", selpg)