def switch_to_tab(self, idx): if not ParsecApp.has_active_modal(): self.tab_center.setCurrentIndex(idx)
def _inner_proxy(): if ParsecApp.has_active_modal(): return funct()
def switch_to_tab(self, idx): if not ParsecApp.has_active_modal(): self.tab_center.setCurrentIndex(idx)
def _inner_proxy(): if ParsecApp.has_active_modal(): return funct()