Changeset 1120:51eac1b8da2e for src/mlx/gui
- Timestamp:
- 10/31/23 16:10:18 (13 months ago)
- Branch:
- python3
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/flight.py
r1119 r1120 3046 3046 self._wizard.usingSimBrief is not False 3047 3047 3048 cruiseLevelText = self._cruiseLevel.get_text() 3049 cruiseLevel = int(cruiseLevelText) if cruiseLevelText else 0 3050 3048 3051 alternate = self._alternate.get_text() 3049 3052 if useSimBrief: 3050 self._button.set_sensitive(len(alternate)==0 or len(alternate)==4 3051 or self._wizard.entranceExam) 3053 self._button.set_sensitive((len(alternate)==0 or len(alternate)==4 3054 or self._wizard.entranceExam) and 3055 (cruiseLevel==0 or cruiseLevel>=50)) 3052 3056 else: 3053 3057 cruiseLevelText = self._cruiseLevel.get_text()
Note:
See TracChangeset
for help on using the changeset viewer.