def proxy_active_choice(self, hbox_proxy): """""" if conf.get_proxy_active(): self.proxy_http.set_active(True) hbox_proxy.set_sensitive(True) else: self.proxy_without.set_active(True)
def load(self): proxy = conf.get_proxy() if proxy is not None: ptype, ip, port = proxy self.port_box.setValue(port) self.entry_proxy_ip.setText(ip) if conf.get_proxy_active(): self.radio_manual.setChecked(True) #emit toggled. else: self.radio_without.setChecked(True)
def load_proxy(self): if conf.get_proxy_active(): proxy_tup = conf.get_proxy() if proxy_tup is not None: ptype, ip, port = proxy_tup self.set_proxy(ptype, ip, port)