* src/BasicUtils.py (UpdateCallback.reset): Add method.

(Verify.on_apply_clicked): Reset the progress.


svn: r6794
This commit is contained in:
Alex Roitman 2006-05-26 23:38:21 +00:00
parent 531b82cf59
commit 84b5a802bb
3 changed files with 9 additions and 4 deletions

View File

@ -1,7 +1,9 @@
2006-05-26 Alex Roitman <shura@gramps-project.org>
* src/BasicUtils.py (UpdateCallback.reset): Add method.
* src/plugins/verify.glade: update interface.
* src/plugins/Verify.py: More improvements. Still need to finish
filtering and object editing on double click.
(Verify.on_apply_clicked): Reset the progress.
2006-05-26 Don Allingham <don@gramps-project.org>
* src/DataViews/_RelationView.py: build skip list for SelectFamily

View File

@ -56,14 +56,16 @@ class UpdateCallback:
if '__call__' in dir(callback): # callback is really callable
self.update = self.update_real
self.callback = callback
self.count = 0
self.oldval = 0
self.oldtime = 0
self.interval = interval
self.reset()
else:
self.update = self.update_empty
def reset(self):
self.count = 0
self.oldval = 0
self.oldtime = 0
def set_total(self,total):
self.total = total

View File

@ -333,6 +333,7 @@ class Verify(Tool.Tool, ManagedWindow, UpdateCallback):
self.uistate.window.window.set_cursor(None)
self.window.window.set_cursor(None)
vr.window.window.set_cursor(None)
self.reset()
# Save options
self.options.handler.save_options()