Пример #1
0
 def __init__(self, parent, *args, **kwargs):
     """"""
     AddonCore.__init__(self, parent)
     self.name = _("Shutdown")
     self.old_retries_count = conf.get_retries_limit()
     if self.old_retries_count == RETRIES_LIMIT:
         conf.set_retries_limit(str(99))
         self.old_retries_count = 99
Пример #2
0
 def __init__(self):
     """"""
     gtk.Frame.__init__(self, _("General:"))
     
     vbox_general = gtk.VBox(False, 10)
     vbox_general.set_border_width(10)
     hbox_retries = gtk.HBox(False, 10)
     
     label_retries = gtk.Label(_("Retries limit:"))
     
     hbox_retries.pack_start(label_retries, False, False)
     self.spin_retries = gtk.SpinButton(None, 1, 0)
     self.spin_retries.set_property("shadow-type", gtk.SHADOW_NONE)
     self.spin_retries.set_range(0, 100000)
     self.spin_retries.set_increments(1, 1)
     self.spin_retries.set_numeric(True)
     self.spin_retries.set_value(conf.get_retries_limit())
     hbox_retries.pack_start(self.spin_retries, False, False)
     
     vbox_general.pack_start(hbox_retries, False, False)
     
     self.add(vbox_general)
Пример #3
0
 def load(self):
     self.retries_box.setValue(conf.get_retries_limit())
     if conf.get_html_dl():
         self.html_box.toggle()
     self.conn_box.setValue(conf.get_max_conn())