Пример #1
0
 def save(self): #for polymorphism
     """"""
     if self.proxy_http.get_active():
         conf.set_proxy_active("True")
     else:
         conf.set_proxy_active("False")
     proxy_ip, port, proxy_type = self.entry_proxy_ip.get_text(), str(self.spin_proxy_port.get_value_as_int()), cons.PROXY_HTTP
     conf.set_proxy(proxy_ip, port, proxy_type)
Пример #2
0
 def save(self):  #for polymorphism
     """"""
     if self.proxy_http.get_active():
         conf.set_proxy_active("True")
     else:
         conf.set_proxy_active("False")
     proxy_ip, port, proxy_type = self.entry_proxy_ip.get_text(), str(
         self.spin_proxy_port.get_value_as_int()), cons.PROXY_HTTP
     conf.set_proxy(proxy_ip, port, proxy_type)
Пример #3
0
    def save(self):
        ptype, ip, port = cons.PROXY_HTTP, self.entry_proxy_ip.text(), str(self.port_box.value())
        conf.set_proxy(ptype, ip, port)

        if self.radio_manual.isChecked():
            conf.set_proxy_active("True")
            request.set_proxy(ptype, ip, port)
        else:
            conf.set_proxy_active("False")
            request.no_proxy()
Пример #4
0
    def save(self):
        ptype, ip, port = cons.PROXY_HTTP, self.entry_proxy_ip.text(), str(
            self.port_box.value())
        conf.set_proxy(ptype, ip, port)

        if self.radio_manual.isChecked():
            conf.set_proxy_active("True")
            request.set_proxy(ptype, ip, port)
        else:
            conf.set_proxy_active("False")
            request.no_proxy()