Exemple #1
0
    def __init__(self, controller):

        #Set the Glade file
        self.gladefile = "classes/gui/glade/tiseangui.glade"

        self.controller = controller
        self.currentForm = None
        # we load the main widgets of the view
        self.mainInterface = gtk.glade.XML(self.gladefile)
        self.mainWindow = self.mainInterface.get_widget("TiseanGUI")
        self.consoleWindow = self.mainInterface.get_widget("TiseanGuiConsole")
        self.menuBar = self.mainInterface.get_widget("TiseanMenuBar")
        self.optionsCommandsHolder = self.mainInterface.get_widget(
            "TiseanCommandOptionsHolder")
        self.consoleMenuItem = self.mainInterface.get_widget("console1")
        self.aboutUsDialog = self.mainInterface.get_widget('TiseanGuiAbout')

        self.consoleWindow.hide()
        self.aboutUsDialog.hide()

        # we set updater method that process the messages that receives the console
        self.consoleUpdater = TiseanViewUpdater(self.consoleWindow)
        # we start the updater
        self.consoleUpdater.start_updater()

        #we connect the callbacks of the view
        self.callback_connection()