dabo Commit
Revision 4134
Date: 2008-06-14 09:50:54 -0700 (Sat, 14 Jun 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4134
Changed:
U trunk/dabo/ui/uiwx/dControlItemMixin.py
Log:
Added display locking to the _setChoices() method to eliminate a lot of the
unnecessary Paint events.
Diff:
Modified: trunk/dabo/ui/uiwx/dControlItemMixin.py
===================================================================
--- trunk/dabo/ui/uiwx/dControlItemMixin.py 2008-06-14 15:31:01 UTC (rev
4133)
+++ trunk/dabo/ui/uiwx/dControlItemMixin.py 2008-06-14 16:50:54 UTC (rev
4134)
@@ -114,6 +114,7 @@
def _setChoices(self, choices):
if self._constructed():
+ self.lockDisplay()
vm = self.ValueMode
oldVal = self.Value
self.Clear()
@@ -128,6 +129,7 @@
except ValueError:
if self._choices:
self.PositionValue = 0
+ self.unlockDisplay()
else:
self._properties["Choices"] = choices
_______________________________________________
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]