Here is one way to do it:
proc DoUpdate {} {
# This proc will be called every 100ms whilst the button
# is held down
incr ::bob
set ::id [after 100 DoUpdate]
}
set id 0
set bob 0
button .b -textvariable bob
pack .b
bind .b <ButtonPress-1> {DoUpdate}
bind .b <ButtonRelease-1> {after...
I have noticed that if you right-click on a Tcl/tk toplevel title bar (bringing up the popup menu) the application appears to freeze (i.e. no events are processed). This does not appear to happen in other windows programs. Is this due to the way Tcl/tk is implemented and is there a way to...
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.