Tk Source Code

Artifact [008acf39]
Login

Artifact 008acf395dd6fd5f761d833bd6030cb4b08fab58:

Attachment "slider.tcl" to ticket [415415ff] added by dgp 2001-04-11 22:02:13.
#!/usr/bin/wish

scale .s -from 0 -to 10 -length 200\
          -orient horizontal -label "TITLE"\
          -tickinterval 1 -showvalue true\
          -command Doit

pack .s

proc Doit { value } {
    puts "Doit arg is $value"
    after 350
    puts "Done $value"
}