* src/BasicUtils.py (UpdateCallback.reset): Add method.
(Verify.on_apply_clicked): Reset the progress. svn: r6794
This commit is contained in:
parent
440c275639
commit
6db98a5e1f
@ -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
|
||||||
|
@ -56,14 +56,16 @@ 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.count = 0
|
|
||||||
self.oldval = 0
|
|
||||||
self.oldtime = 0
|
|
||||||
self.interval = interval
|
self.interval = interval
|
||||||
|
self.reset()
|
||||||
else:
|
else:
|
||||||
self.update = self.update_empty
|
self.update = self.update_empty
|
||||||
|
|
||||||
|
def reset(self):
|
||||||
|
self.count = 0
|
||||||
|
self.oldval = 0
|
||||||
|
self.oldtime = 0
|
||||||
|
|
||||||
def set_total(self,total):
|
def set_total(self,total):
|
||||||
self.total = total
|
self.total = total
|
||||||
|
|
||||||
|
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user