def __init__(self, parent, timeout): QThread.__init__(self) self.daemon = True self.done = False self.reset_timeout = int(timeout) self.reset() self.parent = parent
def __init__(self, WiiMote_id, caller ): QThread.__init__(self) self.caller = caller # Referenz zum Aufrufer self.device_list = caller.device_list #device_list des MainProgramms laden self.WiiMote_id = WiiMote_id #Referenz zur WiiMote lokal speichren self.device_list[self.WiiMote_id].rpt_mode = cwiid.RPT_IR
def __init__(self, WiiMote_id, caller): QThread.__init__(self) self.caller = caller # Referenz zum Aufrufer self.device_list = caller.device_list #device_list des MainProgramms laden self.WiiMote_id = WiiMote_id #Referenz zur WiiMote lokal speichren self.device_list[self.WiiMote_id].rpt_mode = cwiid.RPT_IR
def __init__(self, cont, conf): QThread.__init__(self) self.done = False self.daemon = True self.cont = cont self.cd = Countdown(self, conf.getAttribute("timeout"))
def __init__(self, source, currency, url, fields, interval, callback): QThread.__init__(self) self.source = source self.url = url self.fields = fields self.interval = interval self.callback = callback
def __init__(self, debug_log): QThread.__init__(self) self.debug_log = debug_log opts, args = server_config().option_parser().parse_args(['calibre-server']) self.calibre_server_port = opts.port self.base_url = "http://127.0.0.1:{calibre_server_port}/".format(calibre_server_port=self.calibre_server_port) self.book_metadata_url = 'ajax/book/'
def __init__(self, app, id, user, service, knownids): QThread.__init__(self, app) self.id = id self.app = app self.user = user self.service = service self.knownids = knownids
def __init__(self, app, user, service, updateusers = True): QThread.__init__(self, app) self.app = app self.user = user self.service = service self.updateusers = updateusers self.friends = QSettings("blain", "%s-%s-friends" % (user, service))
def __init__(self, parent): QThread.__init__(self, parent) self.signal = SIGNAL("library_index_complete") self.cdb = parent.opts.gui.current_db self.id_map = None self.hash_map = None self.active_virtual_library = None
def __init__(self, parent, db, root, single, tdir=None): QThread.__init__(self, parent) self.db = db self.path = root self.tdir = tdir self.single_book_per_directory = single self.canceled = False
def __init__(self, app, account, updateusers = True): QThread.__init__(self, app) self.app = app self.account = account self.user = account.name self.service = account.service self.updateusers = updateusers self.friends = account.friends
def __init__(self, gui, field, get_date_range=False): QThread.__init__(self, gui) self.annotation_map = [] self.cdb = gui.current_db self.get_date_range = get_date_range self.newest_annotation = 0 self.oldest_annotation = mktime(datetime.today().timetuple()) self.field = field self.signal = SIGNAL("inventory_complete")
def __init__(self, app, id, user, service, knownids, update_method, user_method, api_method): QThread.__init__(self, app) self.id = id self.app = app self.user = user self.service = service self.knownids = knownids self.api_method = api_method self.user_method = user_method self.update = getattr(self.app.updates, update_method)
def __init__(self, parent, model, rows_to_flash): QThread.__init__(self) self.signal = SIGNAL("flasher_complete") self.model = model self.parent = parent self.rows_to_flash = rows_to_flash self.mode = "old" self.cycles = self.parent.prefs.get("flasher_cycles", 3) + 1 self.new_time = self.parent.prefs.get("flasher_new_time", 300) self.old_time = self.parent.prefs.get("flasher_old_time", 100)
def __init__(self, parent, model, rows_to_flash): QThread.__init__(self) self.signal = SIGNAL("flasher_complete") self.model = model self.parent = parent self.rows_to_flash = rows_to_flash self.mode = 'old' self.cycles = self.parent.prefs.get('flasher_cycles', 3) + 1 self.new_time = self.parent.prefs.get('flasher_new_time', 300) self.old_time = self.parent.prefs.get('flasher_old_time', 100)
def __init__(self, parent, db, device, annotation_map, done_callback): QThread.__init__(self, parent) self.errors = {} self.db = db self.keep_going = True self.pd = ProgressDialog(_('Merging user annotations into database'), '', 0, len(annotation_map), parent=parent) self.device = device self.annotation_map = annotation_map self.done_callback = done_callback self.pd.canceled_signal.connect(self.canceled) self.pd.setModal(True) self.pd.show() self.update_progress.connect(self.pd.set_value, type=Qt.QueuedConnection) self.update_done.connect(self.pd.hide, type=Qt.QueuedConnection)
def __init__(self, parent): QThread.__init__(self, parent) self.keep_going = True self.current_command = None self.out_queue = Queue() self.address = arbitrary_address('AF_PIPE' if iswindows else 'AF_UNIX') self.auth_key = os.urandom(32) if iswindows and self.address[1] == ':': self.address = self.address[2:] self.listener = Listener(address=self.address, authkey=self.auth_key, backlog=4) self.env = { 'CALIBRE_SIMPLE_WORKER': 'calibre.utils.pyconsole.interpreter:main', 'CALIBRE_WORKER_ADDRESS': hexlify(cPickle.dumps(self.listener.address, -1)), 'CALIBRE_WORKER_KEY': hexlify(self.auth_key) } self.process = Process(self.env) self.output_file_buf = self.process(redirect_output=False) self.conn = self.listener.accept() self.start()
def __init__(self, parent): QThread.__init__(self, parent) self.signal = SIGNAL("collection_inventory_complete") self.cdb = parent.opts.gui.current_db self.cfl = get_cc_mapping('collections', 'field', None) self.ids = []
def __init__(self, green_addresses, callback): QThread.__init__(self) self.green_addresses = green_addresses self.callback = callback self.keep_running = True
def __init__(self, callback): QThread.__init__(self) self.callback = callback
def __init__(self, unitedstates): QThread.__init__(self) self.us = unitedstates self.main_gui = calibre_main()
def __init__(self, debug_log, sql_db, unitedstates): QThread.__init__(self) self.us = unitedstates self.debug_log = debug_log self.sql_db = sql_db self.library_id = str(self.sql_db.library_id)
def __init__(self, word, parent=None): QThread.__init__(self, parent) self.word = word.encode('utf-8') if isinstance(word, unicode) else word self.result = self.traceback = self.exception = None
def __init__(self, parent): QThread.__init__(self, parent)
def __init__(self): QThread.__init__(self) self.waiting = False
def __init__(self, unitedstates): QThread.__init__(self) self.us = unitedstates
def __init__(self, app, user, updategroups = True): QThread.__init__(self, app) self.app = app self.user = user self.updategroups = updategroups self.groups = QSettings("blain", "%s-groups" % user)
def __init__(self, gotcha=True): QThread.__init__(self) self.gotcha = gotcha
def __init__(self, parent=None): QThread.__init__(self, parent) self.canceled = False self.cancel_callback = lambda : self.canceled self.folders = set([]) self.books = []
def __init__(self, parent, env): QThread.__init__(self, parent) self.env = env
def __init__(self, parent): QThread.__init__(self, parent) self.signal = SIGNAL("collection_inventory_complete") self.cdb = parent.opts.gui.current_db self.cfl = get_cc_mapping("collections", "field", None) self.ids = []
def __init__(self, librarian): QThread.__init__(self) self.librarian = librarian
def __init__(self, parent=None): QThread.__init__(self, parent) self.canceled = False self.cancel_callback = lambda: self.canceled self.folders = set([]) self.books = []
def __init__(self, ud): QThread.__init__(self) self.daemon = True self.done = False self.ud = ud
def __init__(self, state_box, quit_box, device_list, id): QThread.__init__(self) self.id = id self.device_list = device_list self.state_box_text.connect(state_box.setText) self.state_box_color.connect(state_box.setStyleSheet)