Changeset 1106:27adf311dd37 for src/mlx/gui
- Timestamp:
- 09/19/23 11:04:56 (14 months ago)
- Branch:
- python3
- Phase:
- public
- Location:
- src/mlx/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/flight.py
r1097 r1106 17 17 from mlx.rpc import BookedFlight 18 18 import mlx.web as web 19 from mlx.gates import lhbpGates 19 20 20 21 import datetime … … 6558 6559 self.setCurrentPage(firstPage) 6559 6560 #self.setCurrentPage(10) 6561 6562 @property 6563 def isDepartureGateTaxiThrough(self): 6564 """Determine if the departure gate is a taxi-through one.""" 6565 if self._departureGate=="-": 6566 return True 6567 else: 6568 gate = lhbpGates.find(self._departureGate) 6569 return False if gate is None else gate.taxiThrough 6560 6570 6561 6571 def login(self, callback, pilotID, password): -
src/mlx/gui/gui.py
r1099 r1106 1060 1060 self._flight.aircraft._checkers.append(self) 1061 1061 1062 self._flight.departureGateIsTaxiThrough = self._wizard.isDepartureGateTaxiThrough 1063 print("The departure gate is '%s', and it is %staxi-through" % 1064 (self._wizard._departureGate, 1065 "" if self._flight.departureGateIsTaxiThrough else "not ")) 1066 1062 1067 if self._simulator is None: 1063 1068 self._simulator = fs.createSimulator(simulatorType, self)
Note:
See TracChangeset
for help on using the changeset viewer.