Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/wish
- proc clicks_counter {} {
- global counter
- incr counter
- }
- set counter 0
- label .lab -text "$counter"
- button .but -text "click me! $counter" -command "clicks_counter"
- pack .lab .but
Add Comment
Please, Sign In to add comment