Changeset 90:0b3fb188dc92


Ignore:
Timestamp:
04/18/12 18:03:55 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Added the flight info tab

Location:
src/mlx/gui
Files:
1 added
1 edited

Legend:

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

    r88 r90  
    33from statusicon import StatusIcon
    44from statusbar import Statusbar
     5from info import FlightInfo
    56from update import Updater
    67from mlx.gui.common import *
     
    6364
    6465        self._wizard = Wizard(self)
    65         label = gtk.Label("_Flight")
     66        label = gtk.Label("Fligh_t")
    6667        label.set_use_underline(True)
    6768        label.set_tooltip_text("Flight wizard")
    6869        notebook.append_page(self._wizard, label)
     70
     71        self._flightInfo = FlightInfo(self)
     72        label = gtk.Label("Flight _info")
     73        label.set_use_underline(True)
     74        label.set_tooltip_text("Flight information")
     75        notebook.append_page(self._flightInfo, label)
    6976
    7077        logVBox = gtk.VBox()
     
    200207            self._statusbar.updateConnection(self._connecting, self._connected)
    201208            self._wizard.connectionFailed()
     209            self._flightInfo.reset()
    202210       
    203211    def disconnected(self):
     
    237245            self._statusbar.updateConnection(self._connecting, self._connected)
    238246            self._wizard.disconnected()
     247            self._flightInfo.reset()
    239248
    240249    def write(self, msg):
Note: See TracChangeset for help on using the changeset viewer.