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.

22 lines
555 B
Plaintext

# ----------------------------------------------------------------------
# DEMO: promptdialog in [incr Widgets]
# ----------------------------------------------------------------------
package require Iwidgets 4.0
option add *textBackground seashell
button .b -text "Get Password..." -command {
if {[.pd activate]} {
puts "password: [.pd get]"
} else {
puts "cancelled"
}
}
pack .b
iwidgets::promptdialog .pd -title "Prompt Dialog" -modality application \
-labeltext "Password:" -show "*"
.pd hide Apply
.pd hide Help