def open_unused(self): """Opens the unused tab""" if self.switch(u'__unused__'): return from libqtopensesame.widgets.unused_widget import unused_widget w = unused_widget(self.main_window) self.add(w, u'unused', _(u'Unused items'))
def open_unused(self): """Opens the unused tab""" if self.switch(u'__general__'): return from libqtopensesame.widgets.unused_widget import unused_widget w = unused_widget(self.main_window) self.add(w, u'unused', u'Unused items')