dabo Commit
Revision 3182
Date: 2007-06-19 08:50:12 -0700 (Tue, 19 Jun 2007)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/3182
Changed:
U trunk/dabo/ui/uiwx/dPemMixin.py
Log:
Modified unlockDisplay() so that if too many unlock calls are made, an entry in
the error log is made instead of a Python error being thrown.
Diff:
Modified: trunk/dabo/ui/uiwx/dPemMixin.py
===================================================================
--- trunk/dabo/ui/uiwx/dPemMixin.py 2007-06-18 18:39:50 UTC (rev 3181)
+++ trunk/dabo/ui/uiwx/dPemMixin.py 2007-06-19 15:50:12 UTC (rev 3182)
@@ -752,7 +752,12 @@
Use in conjunction with lockDisplay(), when you are doing lots
of things
that would result in lengthy screen updates.
"""
- self.Thaw()
+ try:
+ self.Thaw()
+ except dabo.ui.assertionException:
+ # Too many 'unlockDisplay' calls to the same object
were made. Log
+ # the mistake, but don't throw a Python error.
+ dabo.errorLog.write(_("Extra call to unlockDisplay()
for object %s") % self)
def bringToFront(self):
_______________________________________________
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/dabo-dev/[EMAIL PROTECTED]