comp.lang.tcl
[Top] [All Lists]

Re: invoking

Subject: Re: invoking
From: Uwe Klein
Date: Fri, 30 May 2008 14:52:26 +0200
Newsgroups: comp.lang.tcl


Ralf Fassel wrote:
* Ralf Fassel <ralfixx@xxxxxx>
| Subject: Re: invoking

Make that "invoking a proc by space key, but not everywhere".

Or something like that.

R'

have a proc with trinary arg {start,stop,toggle}

Bind <Space> in both .start and .stop to action toggle
and as
button .start -command {action start}
bind .start <Space>  {action toggle}

resp

button .stop -command {action stop}
bind .stop <Space>  {action toggle}

uwe

<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy