def fill_entries(self): conf = McmConfig() # SSH client, options = conf.get_ssh_conf() e1 = self.widgets["ssh_entry"] e2 = self.widgets["ssh_options_entry"] e1.set_text(client) e2.set_text(options) # VNC client, options = conf.get_vnc_conf() e1 = self.widgets["vnc_entry"] e2 = self.widgets["vnc_options_entry"] e1.set_text(client) e2.set_text(options) # Telnet client, options = conf.get_telnet_conf() e1 = self.widgets["telnet_entry"] e2 = self.widgets["telnet_options_entry"] e1.set_text(client) e2.set_text(options) # FTP client, options = conf.get_ftp_conf() e1 = self.widgets["ftp_entry"] e2 = self.widgets["ftp_options_entry"] e1.set_text(client) e2.set_text(options) # RDP client, options = conf.get_rdp_conf() e1 = self.widgets["rdp_entry"] e2 = self.widgets["rdp_options_entry"] e1.set_text(client) e2.set_text(options)
def fill_entries(self): conf = McmConfig() #SSH client, options = conf.get_ssh_conf() e1 = self.widgets['ssh_entry'] e2 = self.widgets['ssh_options_entry'] e1.set_text(client) e2.set_text(options) #VNC client, options, embedded = conf.get_vnc_conf() e1 = self.widgets['vnc_entry'] e2 = self.widgets['vnc_options_entry'] e3 = self.widgets['vnc_embedded_chkbutton'] e1.set_text(client) e2.set_text(options) e3.set_active(embedded) #Telnet client, options = conf.get_telnet_conf() e1 = self.widgets['telnet_entry'] e2 = self.widgets['telnet_options_entry'] e1.set_text(client) e2.set_text(options) #FTP client, options = conf.get_ftp_conf() e1 = self.widgets['ftp_entry'] e2 = self.widgets['ftp_options_entry'] e1.set_text(client) e2.set_text(options) #RDP client, options = conf.get_rdp_conf() e1 = self.widgets['rdp_entry'] e2 = self.widgets['rdp_options_entry'] e1.set_text(client) e2.set_text(options)
def insert_default_options(self, widget): type = widget.get_active_text() conf = McmConfig() config = "" if type == "SSH": not_used, config = conf.get_ssh_conf() elif type == "VNC": not_used, config = conf.get_vnc_conf() elif type == "RDP": not_used, config = conf.get_rdp_conf() elif type == "TELNET": not_used, config = conf.get_telnet_conf() elif type == "FTP": not_used, config = conf.get_ftp_conf() opts_entry = self.widgets["options_entry1"] opts_entry.set_text(config)
def insert_default_options(self, widget): type = widget.get_active_text() conf = McmConfig() config = "" if type == 'SSH': not_used, config = conf.get_ssh_conf() elif type == 'VNC': not_used, config = conf.get_vnc_conf() elif type == 'RDP': not_used, config = conf.get_rdp_conf() elif type == 'TELNET': not_used, config = conf.get_telnet_conf() elif type == 'FTP': not_used, config = conf.get_ftp_conf() opts_entry = self.widgets['options_entry1'] opts_entry.set_text(config)