Пример #1
0
 def show_preferences(self, *args):
     """ Show the preferences window. """
     if not self.preferences_initialized or self.preferences.get_state(
     ) == True:
         self.pref = Preferences(self.specto, self)
     else:
         self.pref.show()
Пример #2
0
 def show_preferences(self, *args):
     """ Show the preferences window. """
     if not self.preferences_initialized or self.preferences.get_state(
     ) == True:
         self.logger.log(_("preferences: create"), "debug", self.__class__)
         self.pref = Preferences(self)
     else:
         self.logger.log(_("preferences: reappear"), "debug",
                         self.__class__)
         self.pref.show()