Changeset 717:b6904f6488a4


Ignore:
Timestamp:
10/25/15 19:09:53 (9 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
cef
Phase:
public
Message:

The takeoff and landing runways are reused from the SimBrief setup page on the takeoff and landing pages (re #279).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/gui/flight.py

    r714 r717  
    19611961            print "plan:", plan
    19621962
     1963            takeoffRunway = self._takeoffRunway.get_text()
     1964            if takeoffRunway:
     1965                self._wizard.takeoffRunway = takeoffRunway
     1966
     1967            landingRunway = self._landingRunway.get_text()
     1968            if landingRunway:
     1969                self._wizard.landingRunway = landingRunway
     1970
    19631971            self._userName.set_sensitive(False)
    19641972            self._password.set_sensitive(False)
     
    30033011        self._updatingMETAR = False
    30043012
    3005         self._runway.set_text("")
     3013        if self._wizard.takeoffRunway is None:
     3014            self._runway.set_text("")
     3015        else:
     3016            self._runway.set_text(self._wizard.takeoffRunway)
    30063017        self._runway.set_sensitive(True)
    30073018        self._sid.set_active(0)
     
    35623573        self._transition.set_sensitive(True)
    35633574
    3564         self._runway.set_text("")
     3575        if self._wizard.landingRunway is None:
     3576            self._runway.set_text("")
     3577        else:
     3578            self._runway.set_text(self._wizard.landingRunway)
    35653579        self._runway.set_sensitive(True)
    35663580
     
    45884602        self._arrivalMETAR = None
    45894603        self._usingSimBrief = None
     4604        self.takeoffRunway = None
     4605        self.landingRunway = None
    45904606
    45914607        firstPage = 0 if self._loginResult is None else 1
Note: See TracChangeset for help on using the changeset viewer.