What i want to do is : In a terminal (maybe dtterm),a TK(wish) is called and running in the front ground. But During the period of wish, I want to invoke dtterm in the front ground. Some guys say to use "console show" , but I don't find this command in wish.
After starting a tk application in a terminal, I do some job on GUI and want to use bindkey to focus and popup this associated terminal, how to do it ?
thanks Bong. I tried some other ways and found one below also work:
#!/usr/bin/wish
set aa 0
for {set i 1} {$i < 5} {incr i} {
set bt [button .$i -text $i]
pack $bt
bind $bt <Button-1> {
incr aa
%W configure -text $aa
update
}
}
change $bt configure...
#!/usr/bin/wish
set aa 0
for {set i 1} {$i < 5} {incr i} {
set bt [button .$i -text $i]
bind $bt <Button-1> {
incr aa
$bt configure -text $aa
update
}
}
when I press button .1 .2 .3 .4 , only button .4 text change. why this happen ? and how to make button...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.