##// END OF EJS Templates
progress: move current topic to member variable
Solomon Matthews -
r23906:e0ae0a4e default
parent child Browse files
Show More
@@ -100,6 +100,7 b' class progbar(object):'
100 100 self.printed = False
101 101 self.lastprint = time.time() + float(self.ui.config(
102 102 'progress', 'delay', default=3))
103 self.curtopic = None
103 104 self.lasttopic = None
104 105 self.indetcount = 0
105 106 self.refresh = float(self.ui.config(
@@ -255,6 +256,7 b' class progbar(object):'
255 256 self.startvals[topic] = pos
256 257 self.topics.append(topic)
257 258 self.topicstates[topic] = pos, item, unit, total
259 self.curtopic = topic
258 260 if now - self.lastprint >= self.refresh and self.topics:
259 261 if (self.lasttopic is None # first time we printed
260 262 # not a topic change
General Comments 0
You need to be logged in to leave comments. Login now