Changeset 1123:f0334593281d for src/mlx/gui
- Timestamp:
- 12/10/23 09:50:04 (12 months ago)
- Branch:
- python3
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/prefs.py
r1098 r1123 268 268 self._enableApproachCallouts.set_active(config.enableApproachCallouts) 269 269 self._speedbrakeAtTD.set_active(config.speedbrakeAtTD) 270 self._alternativeSoundSet.set_active(config.soundSet!=0) 270 271 271 272 self._enableChecklists.set_active(config.enableChecklists) … … 321 322 config.enableApproachCallouts = self._enableApproachCallouts.get_active() 322 323 config.speedbrakeAtTD = self._speedbrakeAtTD.get_active() 324 config.soundSet = 1 if self._alternativeSoundSet.get_active() else 0 323 325 324 326 config.enableChecklists = self._enableChecklists.get_active() … … 726 728 backgroundBox.pack_start(self._speedbrakeAtTD, False, False, 4) 727 729 730 self._alternativeSoundSet = Gtk.CheckButton(xstr("prefs_sounds_alternativeSoundSet")) 731 self._alternativeSoundSet.set_use_underline(True) 732 self._alternativeSoundSet.set_tooltip_text( 733 xstr("prefs_sounds_alternativeSoundSet_tooltip")) 734 backgroundBox.pack_start(self._alternativeSoundSet, False, False, 4) 735 728 736 checklistFrame = Gtk.Frame(label = xstr("prefs_sounds_frame_checklists")) 729 737 mainBox.pack_start(checklistFrame, False, False, 4) … … 769 777 self._enableApproachCallouts.set_sensitive(active) 770 778 self._speedbrakeAtTD.set_sensitive(active) 779 self._alternativeSoundSet.set_sensitive(active) 771 780 772 781 def _pilotControlsSoundsToggled(self, button):
Note:
See TracChangeset
for help on using the changeset viewer.