Guest User

Untitled

a guest
Oct 16th, 2017
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
TCL 0.20 KB | None | 0 0
  1. #!/usr/bin/wish
  2. proc clicks_counter {} {
  3. global counter
  4. incr counter
  5. }
  6. set counter 0
  7. label .lab -text "$counter"
  8. button .but -text "click me! $counter" -command "clicks_counter"
  9. pack .lab .but
Add Comment
Please, Sign In to add comment