| Itcl  | Itk  | Itcl @ Wiki  | Itcl @ SF  | Tcl  | Tcl @ Wiki |
  home || iwidgets || man pages cross ref distribution docs faq  
buttonbox
calendar
canvasprintbox
canvasprintdialog
checkbox
combobox
dateentry
datefield
dialog
dialogshell
disjointlistbox
entryfield
extbutton
extfileselectionbox
extfileselectiondialog
feedback
fileselectionbox
fileselectiondialog
finddialog
hierarchy
hyperhelp
labeledframe
labeledwidget
mainwindow
menubar
messagebox
messagedialog
notebook
optionmenu
panedwindow
promptdialog
pushbutton
radiobox
regexpfield
scrolledcanvas
scrolledframe
scrolledhtml
scrolledlistbox
scrolledtext
scrolledwidget
selectionbox
selectiondialog
shell
spindate
spinint
spinner
spintime
tabnotebook
tabset
timeentry
timefield
toolbar
watch

man page | options | methods

Promptdialog

Based on the Dialog class, the Promptdialog provides a Motif style prompt dialog. For further information, see the Promptdialog manpage

Components: bbox hull prompt separator
				

wm title . "Promptdialog Example"

##=========================================================
##	Create a promptdialog iwidget
##=========================================================
##
iwidgets::promptdialog .pd \
	-labeltext "Enter your security key" \
	-title "Accessing Security Site" \
	-modality application

##
##	Hide Apply; don't need it. Bring
##	back Help though; it is hidden by
##	default
##
.pd show Help
.pd hide Apply

.pd buttonconfigure Help \
	-command {puts "this is the help system"}

##
##	Give focus to the entry widget
##
focus [.pd component prompt component entry]

##
##	Center and activate
##
.pd center
if {[.pd activate]} {

	puts "You have entered your security key"
} else {
	puts "Good-bye!"
}

Download this sample code
man page | options | methods
 
  home || iwidgets || man pages cross ref distribution docs faq  
Copyright | Contributions | Development Team | Credits
Bugs/Comments/Suggestions about this web site