def __init__(self): self.lock = Lock() self.list = [] retr = DCHublistRetriever() retr.registerListener(self) self.lock.acquire() DCWorker.getWorker().addJob(retr)
def onRefresh(self, event): retriever = DCHublistRetriever() retriever.registerListener(self) DCWorker.getWorker().addJob(retriever)