def __init__(self, *args, **kwargs): QThread.__init__(self, *args, **kwargs) self.app = AppClass.instance() self.status = STATUS_NONE self.last_sync = datetime.now() self.update_count = 0 self.timer = QTimer() self.timer.timeout.connect(self.sync) self.update_timer() self.wait_condition = QWaitCondition() self.mutex = QMutex()
def __init__(self, *args, **kwargs): super(ProviderService, self).__init__(*args, **kwargs) self.qobject = ProviderServiceQObject() self.app = AppClass.instance()