OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [itcl/] [iwidgets3.0.0/] [demos/] [labeledframe] - Blame information for rev 1765

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.