home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2005 June
/
PCWorld_2005-06_cd.bin
/
software
/
vyzkuste
/
firewally
/
firewally.exe
/
framework-2.3.exe
/
promptdialog
< prev
next >
Wrap
Text File
|
2003-09-01
|
555b
|
22 lines
# ----------------------------------------------------------------------
# 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