Tk text, unset default bindings
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Tk text, unset default bindings

From: Eckhard Lehmann <ecky-l@web.de>
Date: Tue Feb 28 2006 - 09:21:41 CET

Hello,

Tk's text widget, and hence ctext as well, has several default bindings
- e.g. <Control-o> inserts a new line, <Control-v> moves the page
forward on Unix and pastes text on the insertion cursor on windows...

Is it possible to unset and redefine these default bindings somehow? I
like to have <Control-v> bound to paste text, no matter what platform I
am on, and I don't want to have <Control-o> to insert a new line but to
call a different procedure (namely to open a file).
How can I achieve this?

TIA,

Eckhard
Received on Sun Apr 30 02:17:30 2006