def _init(self): self._uiFile = "pluginsConfigDialog.ui" self._tabs = OrderedDict() self._fields = {} # Add a general tab self._addTab('Main', TAB_MAIN)
def _addTab(self, tabName, tabLabel): """ Add a new tab to the tab widget. @param tabName: name of the new tab @type tabName: str @param tabLabel: label to use for the tab (for translations) @type tabLabel: str """ self._tabs[tabName] = tabLabel self._fields[tabName] = OrderedDict()
def __init__(self): """ Init the Presets object. """ super(Presets, self).__init__() self.__presets = OrderedDict()