Changeset 718:0acdad0d34c0 for src/mlx


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

The departure and arrival METARs are taken from the SimBrief flight plan (re #279).

File:
1 edited

Legend:

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

    r717 r718  
    20592059
    20602060            if result==cef.SIMBRIEF_RESULT_OK:
     2061                self._wizard.departureMETARChanged(flightInfo["orig_metar"],
     2062                                                   self)
     2063                self._wizard.arrivalMETARChanged(flightInfo["dest_metar"], self)
    20612064                self._wizard.nextPage()
    20622065            else:
     
    46474650        metar = metar.upper()
    46484651        if originator in [self._departureBriefingPage, self._takeoffPage]:
    4649             self._departureMETARChanged(metar, originator)
     4652            self.departureMETARChanged(metar, originator)
    46504653        else:
    4651             self._arrivalMETARChanged(metar, originator)
    4652 
    4653     def _departureMETARChanged(self, metar, originator):
     4654            self.arrivalMETARChanged(metar, originator)
     4655
     4656    def departureMETARChanged(self, metar, originator):
    46544657        """Called when the departure METAR has been edited on one of the
    46554658        pages.
     
    46614664                page.changeMETAR(metar)
    46624665
    4663     def _arrivalMETARChanged(self, metar, originator):
     4666    def arrivalMETARChanged(self, metar, originator):
    46644667        """Called when the arrival METAR has been edited on one of the
    46654668        pages.
Note: See TracChangeset for help on using the changeset viewer.