Ignore:
Timestamp:
04/17/12 18:00:09 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

Added the collection of some further statistics and the finish page

File:
1 edited

Legend:

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

    r77 r89  
    44
    55import mlx.const as const
     6import mlx.util as util
    67
    78import time
     
    170171        table.attach(label, 4, 5, 6, 7)
    171172        table.attach(self._windDirection, 5, 6, 6, 7)
     173
     174        (label, self._position) = self._createLabeledEntry("Position:", 25)
     175        table.attach(label, 6, 7, 6, 7)
     176        table.attach(self._position, 7, 10, 6, 7)
    172177
    173178        alignment.add(table)
     
    240245            self._windSpeed.set_text("-")
    241246            self._windDirection.set_text("-")
     247            self._position.set_text("-")
    242248        else:
    243249            self._timestamp.set_text(time.strftime("%H:%M:%S",
     
    304310            self._windSpeed.set_text("%.0f" % (aircraftState.windSpeed,))
    305311            self._windDirection.set_text("%03.0f" % (aircraftState.windDirection,))
     312            self._position.set_text(util.getCoordinateString((aircraftState.latitude,
     313                                                              aircraftState.longitude)))
    306314
    307315#------------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.