Example #1
0
 def on_connect_menu_item_clicked(self, menuitem):
     """
     Callback of the 'connect' menuitem
     """
     server = self.get_selected_server()
     gc = GuiController()
     gc.connectToServer(server)
Example #2
0
 def on_connect_menu_item_clicked(self, menuitem):
     """
     Callback of the 'connect' menuitem
     """
     server = self.get_selected_server()
     gc = GuiController()
     gc.connectToServer(server)
Example #3
0
 def connect_button_clicked(self, widget):
     """
     Callback of the connect button
     """
     gui = GuiController()
     server = self.detailsbox.current_server
     if server:
         if server.needsPassword():
             passdialog = PasswordDialog(server,\
                                              PassDialogType.SERVER_PASSWORD)
             passdialog.run()
         else:
             gui.connectToServer(server)
Example #4
0
 def connect_button_clicked(self, widget):
     """
     Callback of the connect button
     """
     gui = GuiController()
     server = self.detailsbox.current_server
     if server:
         if server.needsPassword():
             passdialog = PasswordDialog(server,\
                                              PassDialogType.SERVER_PASSWORD)
             passdialog.run()
         else:
             gui.connectToServer(server)
Example #5
0
    def on_row_double_clickdef(self, treeview, path, view_column):
        """
        Callback for the row-activate signal (double-click, enter...)
        """
        row = self.liststore[path]
        server = row[8]
        gui = GuiController()

        if server:
            if server.needsPassword():
                passdialog = PasswordDialog(server, PassDialogType.SERVER_PASSWORD)
                passdialog.run()
            else:
                gui.connectToServer(server)
Example #6
0
    def on_row_double_clickdef(self, treeview, path, view_column):
        """
        Callback for the row-activate signal (double-click, enter...)
        """
        row = self.liststore[path]
        server = row[9]
        gui = GuiController()

        if server:
            if server.needsPassword():
                passdialog = PasswordDialog(server, PassDialogType\
                                                               .SERVER_PASSWORD)
                passdialog.run()
            else:
                gui.connectToServer(server)
Example #7
0
    def on_ok_clicked(self, widget):
        """
            Callback of the OK button
            """
        #get the entered password
        password = self.passentry.get_text()
        #set the password at the server object
        self.server.setPassword(password)

        #set rememberpassword option
        self.server.setRememberPassword(self.remembercheckbutton.get_active())

        #and connect...
        gui = GuiController()
        gui.connectToServer(self.server)
        #afterwards close the dialog
        self.destroy()
Example #8
0
 def on_ok_clicked(self, widget):
         """
         Callback of the OK button
         """
         #get the entered password
         password = self.passentry.get_text()
         #set the password at the server object
         self.server.setPassword(password)
         
         #set rememberpassword option
         self.server.setRememberPassword(self.remembercheckbutton.get_active())
         
         #and connect...
         gui = GuiController()
         gui.connectToServer(self.server)
         #afterwards close the dialog
         self.destroy()