def __setupSidebars(self): """ Private method that hides the pro-level sidebars """ allLeftTabs = { "File-Browser", "Project-Viewer", "Multiproject-Viewer", "Template-Viewer", "Symbols", "File-Browser" } allBottomTabs = { "Pycom Console", "Shell", "Task-Viewer", "Numbers", "Translator", "Local Shell", "Log-Viewer" } toHideBottom = list(allBottomTabs - bottomTabsToShow) toHideLeft = list(allLeftTabs - leftTabsToShow) UiHelper.hideItemsSidebar(self.__ui.leftSidebar, toHideLeft) if Preferences.Prefs.settings.value("UI/AdvancedBottomSidebar", False) != "true": UiHelper.hideItemsSidebar(self.__ui.bottomSidebar, toHideBottom) self.__ui.leftSidebar.setMaximumWidth(300) self.__ui.bottomSidebar.setMaximumHeight(200) self.__ui.rightSidebar.hide() self.__ui.rightSidebar.clear()
def __setupSidebars(self): """ Private method that hides the pro-level sidebars """ allLeftTabs = { "File-Browser", "Project-Viewer", "Multiproject-Viewer", "Template-Viewer", "Symbols", "File-Browser" } allBottomTabs = { "Pycom Console", "Shell", "Task-Viewer", "Numbers", "Translator", "Local Shell", "Log-Viewer" } toHideBottom = list(allBottomTabs - bottomTabsToShow) toHideLeft = list(allLeftTabs - leftTabsToShow) try: UiHelper.hideItemsSidebar(self.__ui.leftSidebar, toHideLeft) self.__ui.leftSidebar.setMaximumWidth(300) except AttributeError: # most likely the leftSidebar is not initialized, which can happen on windows sometimes pass if Preferences.Prefs.settings.value("UI/AdvancedBottomSidebar", False) != "true": UiHelper.hideItemsSidebar(self.__ui.bottomSidebar, toHideBottom) self.__ui.bottomSidebar.setMaximumHeight(200) self.__ui.rightSidebar.hide() self.__ui.rightSidebar.clear()
def __setupSidebars(self): """ Private method that hides the pro-level sidebars """ allLeftTabs = { "File-Browser", "Project-Viewer", "Multiproject-Viewer", "Template-Viewer", "Symbols", "File-Browser" } allBottomTabs = { "Pycom Console", "Shell", "Task-Viewer", "Numbers", "Translator", "Local Shell", "Log-Viewer" } toHideBottom = list(allBottomTabs - bottomTabsToShow) toHideLeft = list(allLeftTabs - leftTabsToShow) UiHelper.hideItemsSidebar(self.__ui.leftSidebar, toHideLeft) UiHelper.hideItemsSidebar(self.__ui.bottomSidebar, toHideBottom)
def __setupSidebars(self): """ Private method that hides the pro-level sidebars """ allLeftTabs = { "File-Browser", "Project-Viewer", "Multiproject-Viewer", "Template-Viewer", "Symbols", "File-Browser" } allBottomTabs = { "Pycom Console", "Shell", "Task-Viewer", "Numbers", "Translator", "Local Shell", "Log-Viewer" } toHideBottom = list(allBottomTabs - bottomTabsToShow) toHideLeft = list(allLeftTabs - leftTabsToShow) try: UiHelper.hideItemsSidebar(self.__ui.leftSidebar, toHideLeft) except AttributeError: # most likely the leftSidebar is not initialized, which can happen on windows sometimes pass UiHelper.hideItemsSidebar(self.__ui.bottomSidebar, toHideBottom)