Ignore:
Timestamp:
12/28/12 12:13:29 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Added support for querying, displaying and simulating the QNH value (re #175)

File:
1 edited

Legend:

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

    r398 r408  
    3737                              padding_left = 16, padding_right = 16)
    3838
    39         table = gtk.Table(rows = 7, columns = 14)
     39        table = gtk.Table(rows = 9, columns = 14)
    4040        table.set_homogeneous(False)
    4141        table.set_row_spacings(4)
     
    222222        table.attach(label, 10, 11, 7, 8)
    223223        table.attach(self._adf2, 11, 12, 7, 8)
     224
     225        (label, self._qnh) = self._createLabeledEntry("QNH:", 7)
     226        table.attach(label, 0, 1, 8, 9)
     227        table.attach(self._qnh, 1, 2, 8, 9)
    224228
    225229        alignment.add(table)
     
    307311            self._adf1.set_text("-")
    308312            self._adf2.set_text("-")
     313            self._qnh.set_text("-")
    309314        else:
    310315            self._timestamp.set_text(time.strftime("%H:%M:%S",
     
    336341            self._nav1.set_text("-" if aircraftState.nav1 is None else aircraftState.nav1)
    337342            self._nav2.set_text("-" if aircraftState.nav2 is None else aircraftState.nav2)
     343            self._qnh.set_text("%.0f" % (aircraftState.qnh,))
    338344
    339345            fuelStr = ""
Note: See TracChangeset for help on using the changeset viewer.