Changeset 1106:27adf311dd37 for src/mlx


Ignore:
Timestamp:
09/19/23 11:04:56 (14 months ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
Phase:
public
Message:

The flight contains if its departure gate is taxi-through

Location:
src/mlx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/flight.py

    r1034 r1106  
    121121
    122122        self._maxAltitude = 0
     123
     124        self.departureGateIsTaxiThrough = True
    123125
    124126    @property
  • src/mlx/gui/flight.py

    r1097 r1106  
    1717from mlx.rpc import BookedFlight
    1818import mlx.web as web
     19from mlx.gates import lhbpGates
    1920
    2021import datetime
     
    65586559        self.setCurrentPage(firstPage)
    65596560        #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
    65606570
    65616571    def login(self, callback, pilotID, password):
  • src/mlx/gui/gui.py

    r1099 r1106  
    10601060        self._flight.aircraft._checkers.append(self)
    10611061
     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
    10621067        if self._simulator is None:
    10631068            self._simulator = fs.createSimulator(simulatorType, self)
Note: See TracChangeset for help on using the changeset viewer.