Changeset 131:822f47eec5a8 for src/mlx/gui
- Timestamp:
- 04/30/12 08:43:22 (13 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- src/mlx/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/gui.py
r130 r131 673 673 674 674 self._flight = flight.Flight(self._logger, self) 675 self._flight.flareTimeFromFS = self.config.flareTimeFromFS 675 676 self._flight.aircraftType = aircraftType 676 677 self._flight.aircraft = acft.Aircraft.create(self._flight) -
src/mlx/gui/prefs.py
r124 r131 61 61 """Setup the dialog from the given configuration.""" 62 62 self._setLanguage(config.language) 63 self._flareTimeFromFS.set_active(config.flareTimeFromFS) 63 64 64 65 self._togglingAutoUpdate = True … … 73 74 """Setup the given config from the settings in the dialog.""" 74 75 config.language = self._getLanguage() 76 config.flareTimeFromFS = self._flareTimeFromFS.get_active() 75 77 config.autoUpdate = self._autoUpdate.get_active() 76 78 config.updateURL = self._updateURL.get_text() … … 107 109 languageBox.pack_start(languageComboBox, False, False, 4) 108 110 111 label.set_mnemonic_widget(languageComboBox) 112 109 113 self._changingLanguage = False 110 114 self._warnedRestartNeeded = False 111 115 112 label.set_mnemonic_widget(languageComboBox) 116 self._flareTimeFromFS = gtk.CheckButton(xstr("prefs_flaretimeFromFS")) 117 self._flareTimeFromFS.set_use_underline(True) 118 self._flareTimeFromFS.set_tooltip_text(xstr("prefs_flaretimeFromFS_tooltip")) 119 120 mainBox.pack_start(self._flareTimeFromFS, False, False, 4) 113 121 114 122 return mainAlignment
Note:
See TracChangeset
for help on using the changeset viewer.