On Jan 24, 2006, at 8:48 AM, Henning Hraban Ramm wrote:
I didn't find any dabo docs on key events (where's
dabo.ui.dKeys??), and I guess there's a bug somewhere...
- evt.rawKeyCode is some 'long'
- evt.keyChar works for Return ("\r"), but not for Enter (None)
- dabo.ui.dKeys.key_Return is 13, so ord(evt.keyChar) works with
Return -- not as intuitive as dabo claims to be!
What about evt.keyCode? That should be equal to 13.
It changed (due to some changes in dabo-cvs?) to:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/Dabo-0.5-py2.4.egg/dabo/ui/uiwx/dMenu.py",
line 38, in __onWxMenuOpen
if evt.GetMenu().Caption == self.Caption:
AttributeError: 'Menu' object has no attribute 'Caption'
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/Dabo-0.5-py2.4.egg/dabo/ui/uiwx/dMenu.py",
line 47, in __onWxMenuClose
if evt.GetMenu().Caption == self.Caption:
AttributeError: 'Menu' object has no attribute 'Caption'
Yeah, I ran into that this morning. Thought that I was making
things more efficient, but introduced a bug instead! It's fixed in
Subversion.
-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users