Ignore:
Timestamp:
04/21/12 15:08:59 (13 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

The delay codes are handled

Location:
src/mlx/gui
Files:
2 edited

Legend:

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

    r97 r99  
    243243        """Get the flight defects."""
    244244        return self._flightInfo.flightDefects
     245
     246    @property
     247    def delayCodes(self):
     248        """Get the delay codes."""
     249        return self._flightInfo.delayCodes
    245250
    246251    def run(self):
  • src/mlx/gui/info.py

    r98 r99  
    120120                                            buffer.get_end_iter(), True))
    121121
     122    @property
     123    def delayCodes(self):
     124        """Get the list of delay codes checked by the user."""
     125        codes =  []
     126        for index in range(0, len(FlightInfo._delayCodes)):
     127            if self._delayCodeWidgets[index].get_active():
     128                codes.append(FlightInfo._delayCodes[index][0])
     129        return codes
     130           
    122131    def enable(self):
    123132        """Enable the flight info tab."""
Note: See TracChangeset for help on using the changeset viewer.