2007-10-06 Don Allingham <don@gramps-project.org>

* various: creation of gen.db package



svn: r9091
This commit is contained in:
Don Allingham
2007-10-07 03:19:35 +00:00
parent e7f02d1855
commit 32d7968365
35 changed files with 1304 additions and 1273 deletions

@@ -87,7 +87,7 @@ class GtkProgressDialog(gtk.Dialog):
self._progress_bars = []
def add(self,long_op_status):
def add(self, long_op_status):
"""Add a new status object to the progress dialog.
@param long_op_status: the status object.
@@ -145,7 +145,7 @@ class GtkProgressDialog(gtk.Dialog):
gtk.Dialog.hide(self)
self._process_events()
def _warn(self,x,y):
def _warn(self, x, y):
return True
def close(self):
@@ -155,7 +155,7 @@ if __name__ == '__main__':
import time
from GrampsDb import LongOpStatus, ProgressMonitor
def test(a,b):
def test(a, b):
d = ProgressMonitor(GtkProgressDialog)
s = LongOpStatus("Doing very long operation", 100, 10)
@@ -165,7 +165,7 @@ if __name__ == '__main__':
for i in xrange(0, 99):
time.sleep(0.1)
if i == 30:
t = LongOpStatus("doing a shorter one", 100, 10,
t = LongOpStatus("doing a shorter one", 100, 10,
can_cancel=True)
d.add_op(t)
for j in xrange(0, 99):
@@ -193,4 +193,4 @@ if __name__ == '__main__':
w.show()
gtk.main()
print 'done'