🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: pl.comp.lang.tcl
2 messages
2 total messages Started by olo Tue, 27 Sep 2005 10:29
problem z trace
#175
Author: olo
Date: Tue, 27 Sep 2005 10:29
28 lines
1407 bytes
Witam

Ponizszy skrypt, po kliknieciu na przycisku, generuje blad:

  can't set "val": invalid command name "val"

ale czemu? Nie mam pojecia.

------------------------------------------------
#!/usr/bin/wish8.4
wm protocol . WM_DELETE_WINDOW {
    destroy .
    exit 1
}
set val 0
checkbutton .ere -text "regexp" -variable val -onvalue 1 -offvalue 0
pack .ere
trace variable val w {
    puts stderr "in"
}
vwait eventLoop
destroy .
------------------------------------------------

Bede wdzieczny za wszelka pomoc.

olo
Re: problem z trace
#176
Author: Googie
Date: Tue, 27 Sep 2005 10:59
27 lines
1617 bytes
olo@nowar.pl napisał(a):
> ------------------------------------------------
> #!/usr/bin/wish8.4
> wm protocol . WM_DELETE_WINDOW {
>     destroy .
>     exit 1
> }
> set val 0
> checkbutton .ere -text "regexp" -variable val -onvalue 1 -offvalue 0
> pack .ere
> trace variable val w {
>     puts stderr "in"
> }
> vwait eventLoop
> destroy .
> ------------------------------------------------

1) Po co są 2 ostatnie linie???

2) Właściwy błąd wydaje mi się bugiem - co jest dość zaskakujące. Tcl 
generalnie ma b. mało błędów. Gdy próbowałem śledzić zmienną przez "r", 
a nie "w", to wszystko działało. Jedynie "w" sprawia problemy, co 
sugerowało by, że jest to bug Tcla. Ale ja się tam nie znam... :)

-- 
Pozdrawiam!
Googie
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads