dabo Commit
Revision 6296
Date: 2010-12-27 12:28:19 -0800 (Mon, 27 Dec 2010)
Author: Jacekk
Trac: http://trac.dabodev.com/changeset/6296
Changed:
U trunk/dabo/ui/uiwx/dControlItemMixin.py
Log:
- Fix InteractiveChange doesn't fire on hit.
- Change iteritems() to items() reference to conform to incoming Python 3.0.
- Removed redundant _afterValueChanged() call, since it's called in
PosithinChange property code.
Diff:
Modified: trunk/dabo/ui/uiwx/dControlItemMixin.py
===================================================================
--- trunk/dabo/ui/uiwx/dControlItemMixin.py 2010-12-26 20:53:01 UTC (rev
6295)
+++ trunk/dabo/ui/uiwx/dControlItemMixin.py 2010-12-27 20:28:19 UTC (rev
6296)
@@ -28,9 +28,12 @@
def _onWxHit(self, evt):
+ self._userChanged = True
# Flush value on every hit:
self.flushValue()
super(dControlItemMixin, self)._onWxHit(evt)
+ # Since super method set this attribute again, we must reset it.
+ self._userChanged = False
def appendItem(self, txt, select=False):
@@ -160,7 +163,7 @@
def _setKeys(self, val):
if isinstance(val, dict):
self._keys = val
- self._invertedKeys = dict([[v,k] for k,v in
val.iteritems()])
+ self._invertedKeys = dict([[v,k] for k,v in
val.items()])
elif isinstance(val, (list, tuple)):
self._keys = val
self._invertedKeys = None
@@ -242,7 +245,6 @@
snm = self.Name
raise ValueError(_("Trying to set %(snm)s.Value
to these invalid selections: %(invalidSelections)s") % locals())
- self._afterValueChanged()
else:
self._properties["KeyValue"] = value
_______________________________________________
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]