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.

21 lines
578 B
Plaintext

# ----------------------------------------------------------------------
# DEMO: messagedialog in [incr Widgets]
# ----------------------------------------------------------------------
package require Iwidgets 4.0
button .b -text "Confirm..." -command {
if {[.md activate]} {
puts "selected: Yes"
} else {
puts "selected: No"
}
}
pack .b
iwidgets::messagedialog .md -title "Message Dialog" -modality application \
-bitmap questhead -text "Are you sure?"
.md hide Help
.md buttonconfigure OK -text "Yes"
.md buttonconfigure Cancel -text "No"