dabo Commit
Revision 4448
Date: 2008-08-26 01:49:58 -0700 (Tue, 26 Aug 2008)
Author: Paul
Trac: http://svn.dabodev.com/trac/dabo/changeset/4448
Changed:
U trunk/dabo/ui/uiwx/dForm.py
Log:
Here's my suggested fix to the "Please wait... requerying dataset" busyinfo:
just push it to the StatusText.
Ed, feel free to revert if you'd rather put in a property to control the
busyinfo box like you were talking about, but I like how this version feels
in my apps so I thought I'd share it to solicit comments.
Diff:
Modified: trunk/dabo/ui/uiwx/dForm.py
===================================================================
--- trunk/dabo/ui/uiwx/dForm.py 2008-08-26 08:37:03 UTC (rev 4447)
+++ trunk/dabo/ui/uiwx/dForm.py 2008-08-26 08:49:58 UTC (rev 4448)
@@ -446,9 +446,9 @@
# A False from confirmChanges means "don't proceed"
return
- self.Freeze()
try:
- busy = dabo.ui.busyInfo(_("Please wait... requerying
dataset..."))
+ self.StatusText = _("Please wait... requerying
dataset...")
+# busy = dabo.ui.busyInfo(_("Please wait... requerying
dataset..."))
self.stopWatch.Start()
# response = dProgressDialog.displayAfterWait(self, 2,
bizobj.requery)
response = bizobj.requery()
@@ -456,7 +456,7 @@
elapsed = round(self.stopWatch.Time()/1000.0, 3)
self.update()
- del busy
+# del busy
newRowNumber = bizobj.RowNumber
if newRowNumber != oldRowNumber:
@@ -469,7 +469,7 @@
# We made it through without errors
ret = True
- self._holdStatusText = (
+ self.StatusText = (
_("%s record%sselected in %s second%s")
% (
bizobj.RowCount,
bizobj.RowCount == 1 and " " or "s ",
@@ -498,7 +498,6 @@
self.afterRequery()
self.refresh()
- self.Thaw()
return ret
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]