/usr/share/doc/iwidgets4-doc/demos/promptdialog is in iwidgets4-doc 4.0.1-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | # ----------------------------------------------------------------------
# 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
|