[ltk-user] paren-matching entry widgets, and unbinding the TAB key.

michael graffam mikegraffam at yahoo.com
Mon Jan 9 22:02:22 UTC 2006


Hello all,

I was wondering if someone on this list might be able
to help me make a parenthesis matching entry widget? 

What I need to know is how (if it is even possible) I
can find where the text cursor is in an entry widget.
The approach I'd like to use is to bind #\) to a
function which looks at the current position of the
text cursor and iterates backwards through the string
looking for the matching #\( .. then the icursor
position will be set to this location for a second to
indicate to the user the matching paren, and then
placed back to the original position. 

The second question that I have is how I might unbind
the TAB key in my entry widget so that hitting TAB
will not move focus to the next widget in the window.
I'd like TAB to invoke my auto-completion routine
(using Control-Space at the moment). 

Thanks for you help. 

Mike


		
__________________________________________ 
Yahoo! DSL – Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com 




More information about the ltk-user mailing list