1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
#!/bin/sh
# ----------------------------------------------------------------------
# DEMO: labeledframe in [incr Widgets]
# ----------------------------------------------------------------------
#\
exec itkwish "$0" ${1+"$@"}
package require Iwidgets 3.0
#
# Demo script for the Labeledframe class
#
set tk_strictMotif 1
iwidgets::Labeledframe .pr -labelpos ne -labeltext "Print range"
set cs [.pr childsite]
radiobutton $cs.all \
-highlightthickness 0 \
-anchor w \
-justify left \
-text "All" \
-underline 0 \
-value 1
radiobutton $cs.range \
-highlightthickness 0 \
-anchor w \
-justify left \
-text "Pages" \
-underline 2 \
-value 0
iwidgets::entryfield $cs.from \
-highlightthickness 0 \
-labelpos w \
-labeltext "from:" \
-width 10
[$cs.from component label] configure -justify left -underline 0
iwidgets::entryfield $cs.to \
-highlightthickness 0 \
-labelpos w \
-labeltext "to:" \
-width 10
[$cs.to component label] configure -justify left -underline 0
pack $cs.all -side top -fill x -anchor w
pack $cs.range -side left -fill x -anchor w
pack $cs.from -side left -fill x -anchor w
pack $cs.to -side left -fill x -anchor w
pack .pr -fill both
|