Logo Search packages:      
Sourcecode: wicd version File versions

def wicd::gui::appGui::__init__ (   self,
  standalone = False 
)

Initializes everything needed for the GUI. 

Definition at line 1206 of file gui.py.

01206                                         :
        """ Initializes everything needed for the GUI. """
        gladefile = wpath.share + "wicd.glade"
        self.windowname = "gtkbench"
        self.wTree = gtk.glade.XML(gladefile)

        dic = { "refresh_clicked" : self.refresh_networks, 
                "quit_clicked" : self.exit, 
                "disconnect_clicked" : self.disconnect_all,
                "main_exit" : self.exit, 
                "cancel_clicked" : self.cancel_connect,
                "connect_clicked" : self.connect_hidden,
                "preferences_clicked" : self.settings_dialog,
                "about_clicked" : self.about_dialog,
                "create_adhoc_network_button_button" : self.create_adhoc_network}
        self.wTree.signal_autoconnect(dic)

        # Set some strings in the GUI - they may be translated
        label_instruct = self.wTree.get_widget("label_instructions")
        label_instruct.set_label(language['select_a_network'])

        probar = self.wTree.get_widget("progressbar")
        probar.set_text(language['connecting'])
        
        self.window = self.wTree.get_widget("window1")
        self.network_list = self.wTree.get_widget("network_list_vbox")
        self.status_area = self.wTree.get_widget("connecting_hbox")
        self.status_bar = self.wTree.get_widget("statusbar")

        self.status_area.hide_all()

        # self.window.set_icon_from_file(wpath.etc + "wicd.png")
        if os.path.exists(wpath.images + "wicd-client.png"):
            self.window.set_icon_from_file(wpath.images + "wicd-client.png")
        self.statusID = None
01241         self.first_dialog_load = True
        self.vpn_connection_pipe = None
        self.is_visible = True
        self.pulse_active = False
        self.standalone = standalone
        self.wpadrivercombo = None
        self.connecting = False
        self.prev_state = False
        self.refresh_networks(fresh=False)
        
        self.window.connect('delete_event', self.exit)
        self.window.connect('key-release-event', self.key_event)

        size = config.ReadWindowSize("main")
        width = size[0]
        height = size[1]
        if width > -1 and height > -1:
            self.window.resize(int(width), int(height))

        gobject.timeout_add(700, self.update_statusbar)

    def create_adhoc_network(self, widget=None):


Generated by  Doxygen 1.6.0   Back to index