neingeist
/
arduinisten
Archived
1
0
Fork 0
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

18 lines
527 B
Plaintext

# ----------------------------------------------------------------------
# DEMO: pushbutton in [incr Widgets]
# ----------------------------------------------------------------------
package require Iwidgets 4.0
. configure -background white
iwidgets::pushbutton .pb -text "Push Me" -defaultring yes -command {
puts "Hello, World!"
}
pack .pb -padx 4 -pady 4
checkbutton .default -text "Default ring" -variable defring \
-command {.pb configure -defaultring $defring}
pack .default -padx 4 -pady 4
.default invoke