|
|
| Ken Tilton 2006-05-25, 4:15 am |
| Wow. After creating a Tk window I:
bind . <Escape> {destroy .}
bind . <Alt-x> {destroy .}
Escape works.
Alt-x gives me an access violation from inside Tcl_DoOneEvent.
Alt-q same result as Alt-x.
Control-k works.
a (not that I would ever bind one letter) works.
hmmmm... is Tcl/Tk looking for something more after an Alt-whatever combo?
To be honest, I really had Alt-q bound as the accelerator for a menu
item whose command was "destroy .", but while experimenting with things
that did work (Escape being my quickie out during development) it
occurred to be to bypass menus and just try it same as with Escape. This
was a shocker side by side with other keyboard events.
The only theory I have is from outside the box: maybe I should not be
closing a window with "destroy .". Maybe it is blind dumb luck that I
ever get away with it.
???
kenny
--
Cells: http://common-lisp.net/project/cells/
"Have you ever been in a relationship?"
Attorney for Mary Winkler, confessed killer of her
minister husband, when asked if the couple had
marital problems.
| |
| Donald Arseneau 2006-05-25, 4:15 am |
| Ken Tilton <kentilton@gmail.com> writes:
> bind . <Alt-x> {destroy .}
> Alt-x gives me an access violation from inside Tcl_DoOneEvent.
Try
bind . <Alt-x> {destroy . ; break}
--
Donald Arseneau asnd@triumf.ca
| |
| Ken Tilton 2006-05-25, 4:15 am |
|
Donald Arseneau wrote:
> Ken Tilton <kentilton@gmail.com> writes:
>
>
>
>
> Try
>
> bind . <Alt-x> {destroy . ; break}
>
Thanks. Works. I'm afraid to ask. :)
kenny
--
Cells: http://common-lisp.net/project/cells/
"Have you ever been in a relationship?"
Attorney for Mary Winkler, confessed killer of her
minister husband, when asked if the couple had
marital problems.
| |
|
| Don't be afraid to ask! :-) It's because Alt-x already had a binding.
After yours has been executed (destroy .), it tried to execute the
other binding as well, but couldn't since . doesn't exist anymore. But
if you add the "break" command, then it will skip any other bindings,
and just execute yours.
Esc and Ctrl-x have no additional bindings, so those worked without
"break".
| |
| Ken Tilton 2006-05-25, 8:14 am |
|
EKB wrote:
> Don't be afraid to ask! :-) It's because Alt-x already had a binding.
> After yours has been executed (destroy .), it tried to execute the
> other binding as well, but couldn't since . doesn't exist anymore. But
> if you add the "break" command, then it will skip any other bindings,
> and just execute yours.
>
> Esc and Ctrl-x have no additional bindings, so those worked without
> "break".
>
Thx. Never woulda got that one. :)
kenny
--
Cells: http://common-lisp.net/project/cells/
"Have you ever been in a relationship?"
Attorney for Mary Winkler, confessed killer of her
minister husband, when asked if the couple had
marital problems.
| |
| Jeff Hobbs 2006-05-25, 10:03 pm |
| Ken Tilton wrote:
> Wow. After creating a Tk window I:
>
> bind . <Escape> {destroy .}
> bind . <Alt-x> {destroy .}
>
> Escape works.
>
> Alt-x gives me an access violation from inside Tcl_DoOneEvent.
> Alt-q same result as Alt-x.
You got your question answered, but if this Alt sequence crash is
occuring in the latest Tk release, please file it as a bug.
Jeff
| |
| Ken Tilton 2006-05-25, 10:03 pm |
|
Jeff Hobbs wrote:
> Ken Tilton wrote:
>
>
>
> You got your question answered, but if this Alt sequence crash is
> occuring in the latest Tk release, please file it as a bug.
I will. This is 8.5.04 from the ActiveState binary install.
kzo
--
Cells: http://common-lisp.net/project/cells/
"Have you ever been in a relationship?"
Attorney for Mary Winkler, confessed killer of her
minister husband, when asked if the couple had
marital problems.
| |
| chengye.geo@yahoo.com 2006-05-25, 10:03 pm |
| it happens in the latest Tk85 and should be considered as a bug.
Chengye
| |
| Ken Tilton 2006-05-25, 10:03 pm |
|
chengye.geo@yahoo.com wrote:
> it happens in the latest Tk85 and should be considered as a bug.
I feel better! :) I did report it.
kenny
--
Cells: http://common-lisp.net/project/cells/
"Have you ever been in a relationship?"
Attorney for Mary Winkler, confessed killer of her
minister husband, when asked if the couple had
marital problems.
| |
| chengye.geo@yahoo.com 2006-05-25, 10:03 pm |
| Have you submitted this bug to Tk Toolkit project at SF.net? If so
what is the bug ID?
Chengye
| |
| Ken Tilton 2006-05-25, 10:03 pm |
|
chengye.geo@yahoo.com wrote:
> Have you submitted this bug to Tk Toolkit project at SF.net? If so
> what is the bug ID?
At ActiveState. 45987. resolved as of just now:
http://bugs.activestate.com/show_bug.cgi?id=45987
Will that propagate to SF.net?
kzo
--
Cells: http://common-lisp.net/project/cells/
"Have you ever been in a relationship?"
Attorney for Mary Winkler, confessed killer of her
minister husband, when asked if the couple had
marital problems.
| |
| Jeff Hobbs 2006-05-25, 10:03 pm |
| Ken Tilton wrote:
>
>
> chengye.geo@yahoo.com wrote:
>
> At ActiveState. 45987. resolved as of just now:
>
> http://bugs.activestate.com/show_bug.cgi?id=45987
>
> Will that propagate to SF.net?
No, these bug dbs are separate. The ActiveTcl one is meant more for
distribution-level bugs, but it of course gets core bugs on occasion. I
have fixed this bug already, so there is no need to worry about it further.
Jeff
|
|
|
|