* 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 440c275639
commit 6db98a5e1f
3 changed files with 9 additions and 4 deletions

View File

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

View File

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

View File

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