예제 #1
0
 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)
예제 #2
0
 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)
예제 #3
0
 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)
예제 #4
0
 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)
예제 #5
0
 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)