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

Started the flight wizard and it is now possible to log in

File:
1 edited

Legend:

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

    r41 r42  
    55from update import Updater
    66from mlx.gui.common import *
     7from mlx.gui.flight import Wizard
    78
    89import mlx.const as const
     
    4041
    4142        self._programDirectory = programDirectory
    42         self._config = config
     43        self.config = config
    4344        self._connecting = False
    4445        self._connected = False
     
    6970        window.add(mainVBox)
    7071
     72        notebook = gtk.Notebook()
     73        mainVBox.add(notebook)
     74
     75        notebook.append_page(Wizard(self), gtk.Label("Flight"))
     76
     77        dataVBox = gtk.VBox()
     78        notebook.append_page(dataVBox, gtk.Label("Data"))
     79
    7180        setupFrame = self._buildSetupFrame()
    7281        setupFrame.set_border_width(8)
    73         mainVBox.pack_start(setupFrame, False, False, 0)
     82        dataVBox.pack_start(setupFrame, False, False, 0)
    7483
    7584        dataFrame = self._buildDataFrame()
    7685        dataFrame.set_border_width(8)
    77         mainVBox.pack_start(dataFrame, False, False, 0)
    78 
     86        dataVBox.pack_start(dataFrame, False, False, 0)
     87
     88        logVBox = gtk.VBox()
     89        notebook.append_page(logVBox, gtk.Label("Log"))
     90       
    7991        logFrame = self._buildLogFrame()
    8092        logFrame.set_border_width(8)
    81         mainVBox.pack_start(logFrame, True, True, 0)
     93        logVBox.pack_start(logFrame, True, True, 0)
    8294
    8395        mainVBox.pack_start(gtk.HSeparator(), False, False, 0)
     
    94106    def run(self):
    95107        """Run the GUI."""
    96         if self._config.autoUpdate:
     108        if self.config.autoUpdate:
    97109            self._updater = Updater(self,
    98110                                    self._programDirectory,
    99                                     self._config.updateURL,
     111                                    self.config.updateURL,
    100112                                    self._mainWindow)
    101113            self._updater.start()
Note: See TracChangeset for help on using the changeset viewer.