Ignore:
Timestamp:
05/12/12 15:48:45 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

The background sounds play back properly

Location:
src/mlx/gui
Files:
2 edited

Legend:

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

    r164 r170  
    1010from mlx.pirep import PIREP
    1111from mlx.i18n import xstr
     12from mlx.sound import startSound
    1213
    1314import datetime
     
    14231424                                                  bookedFlight.departureICAO,
    14241425                                                  bookedFlight.arrivalICAO)
     1426            startSound(const.SOUND_NOTAM)
    14251427
    14261428    def _notamsCallback(self, returned, result):
  • src/mlx/gui/gui.py

    r168 r170  
    11301130        """Handle the hotkeys."""
    11311131        if id==self._hotkeySetID:
    1132             print "gui.GUI._handleHotkeys", hotkeys
     1132            for index in hotkeys:
     1133                if index==0:
     1134                    self._flight.pilotHotkeyPressed()
     1135                else:
     1136                    self._flight.checklistHotkeyPressed()
Note: See TracChangeset for help on using the changeset viewer.