Add set_text method to updatecallback to allow progress text changes

This commit is contained in:
prculley 2017-01-17 10:31:49 -06:00
parent 8fa6fad67a
commit e7e1976222

View File

@ -76,6 +76,13 @@ class UpdateCallback:
self.oldtime = 0
self.text = text
def set_text(self, text):
"""
Set the text.
"""
self.text = text
self.oldval = -1
def set_total(self, total):
"""
Set the total.