Example #1
0
 def on_port_pref_profile_changed(self, cbox: Gtk.ComboBox):
     """Signal handler: Port preferred profile combobox selection changed."""
     if self.updating_widgets > 0:
         return
     val = cbox.get_active_id()
     logging.debug('PreferencesDialog.on_port_pref_profile_changed(`%s`)', val)
     cfg = self.get_current_port_config()
     if cfg is not None:
         cfg['preferred_profile'] = val or None
         self.schedule_refresh()
Example #2
0
 def on_cb_direction_changed(self, w: Gtk.ComboBox, *args):
     self.restrictions.direction = DungeonRestrictionDirection(
         int(w.get_active_id()))
     self._save_dungeon_restrictions()