I think the problem is that the default behavior is not getting called.  How
do I call it? I tried evt.super() but that throws an exception.

1) Define textbox
keybox=dabo.ui.dTextBox(self)

2) Bind event
keybox.bindEvent(dEvents.KeyChar, self._lookup)

3) Custom eventhandler

def _lookup(self,evt):
        from dabo.ui import dKeys as dKeys
        if evt.keyCode == dKeys.key_F7 or evt.keyCode == dKeys.key_F4 or
evt.keyCode == dKeys.key_Return:
            thestr= self.Form.varietylookup(evt)
            return
        keyChar = evt.keyChar 
        if (keyChar in """,./<>?;':"[]\\{}|[EMAIL PROTECTED]&*()-_=+"""):
            evt.stop()

        #otherwise issue default behavior
        evt.super()?

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Paul McNett
Sent: Tuesday, April 10, 2007 12:03 PM
To: Dabo Users list
Subject: Re: [dabo-users] Textbox - backspace, delete, left & right arrows
dont work

[EMAIL PROTECTED] wrote:
> Am I missing something?  When I am on a textbox the backspace, delete,
left
> & right arrows don’t work.

First, ascertain whether this is happening with all dTextBox instances 
or not. Try running dabo/ui/uiwx/dTextBox.py and see if you see the 
behavior there or not. If so, please report back with platform info. If 
not, then please post the code for your subclass of dTextBox.

-- 
pkm ~ http://paulmcnett.com


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message:
http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]

-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 269.0.0/754 - Release Date: 09-Apr-2007
10:59 PM
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 269.0.0/754 - Release Date: 09-Apr-2007
10:59 PM
 


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/!&[EMAIL PROTECTED]

Reply via email to