def run(self): reader = path_dump.reader() paths = reader.read(self.filename) self.find_diff_paths(paths) self.emit(QtCore.SIGNAL('done')) print 'Dump statistics (dump_stats thread) done, %d paths analyzed!'\ % (len(paths), )
def create(self, fname): reader = path_dump.reader() self.paths = reader.read(fname) # compute dump stats in another thread self.dump_stats_thread = dump_stats(fname) self.widget.connect(self.dump_stats_thread, QtCore.SIGNAL('done'), self.stats_processed) self.dump_stats_thread.start()