|
Shell
The shell iwidget is a base class widget. It contains a hull and a childsite, so
that other widgets can be place inside. This is a toplevel widget, and is used by dialog boxes, mainwindow, and hyperhelp. It defines some basic window management function with window activation/deactivation and modality. This iwidget is used to derive other iwidgets, so this is seldom used as a general purpose iwidget.
For further information, see the Shell
manpage
Components: hull
|
##=========================================================
## Create a Shell iwidget
##=========================================================
##
iwidgets::shell .s \
-title "Shell Example" \
-background ghostwhite
set cs [.s childsite]
label $cs.lbl \
-text "This is a Shell Example"
pack $cs.lbl \
-fill both \
-expand true
.s activate
|
Download this sample code |
|