From e7e1976222aa3010ddfdd70be88e65975e13dce4 Mon Sep 17 00:00:00 2001 From: prculley Date: Tue, 17 Jan 2017 10:31:49 -0600 Subject: [PATCH] Add set_text method to updatecallback to allow progress text changes --- gramps/gen/updatecallback.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gramps/gen/updatecallback.py b/gramps/gen/updatecallback.py index 3e8539d60..9042e69b7 100644 --- a/gramps/gen/updatecallback.py +++ b/gramps/gen/updatecallback.py @@ -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.