blob: 74359ec3aa700be57c1e1c7bb61a3a3bd8df9889 (
plain) (
blame)
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
# PANEL.GUI -- Test GUI for the Tabs widget.
reset-server
appInitialize panel Panel {
*objects:\
toplevel Frame frame\
frame Tabs panelTabs\
\
panelTabs Layout panel\
panel Frame label1F\
label1F Label label1\
panel Frame label2F\
label2F Label label2\
panel Command button1\
panel Command button2\
panel RadioGroup color\
\
panelTabs Frame gtermFrame\
gtermFrame Gterm gterm
*background: gray
*foreground: black
*frame.highlightThickness: 0
*frame.frameWidth: 3
*frame.frameType: raised
*frame.innerOffset: 5
*frame.outerOffset: 1
*panel.debug: False
*panel.borderWidth: 0
*panel.tabLabel: Panel
*gtermFrame.tabLabel: Gterm Widget
*gtermFrame.outerOffset: 7
*gtermFrame.frameWidth: 3
*gtermFrame.frameType: sunken
*gterm.width: 100
*gterm.height: 100
*gterm.maxColors: 5
*gterm.cmapInitialize: True
*panel.layout: horizontal { \
vertical { \
5 < +inf -5 > \
horizontal { \
label1F < +inf * +inf > \
} \
5 < +inf -5 > \
horizontal { \
label2F < +inf * +inf > \
} \
5 < +inf -5 > \
horizontal {\
button1 < +inf * +inf > \
5 < +inf -5 > \
button2 < +inf * +inf > \
}\
5 < +inf -5 > \
} \
vertical { \
5 < +inf -5 > \
color < +inf * +inf > \
} \
}
*Command.highlightThickness: 0
*Label.borderWidth: 0
*Label.background: gray60
*label1*shadowWidth: 0
*label1F.frameType: sunken
*label1F.frameWidth: 2
*label2*shadowWidth: 0
*label2F.frameType: sunken
*label2F.frameWidth: 2
*color.location: 0 0 100 0
*color.shrinkToFit: True
*color.outerOffset: 10
*color.innerOffset: 5
*color.frameWidth: 2
*color*offIcon: diamond0s
*color*onIcon: diamond1s
*color.red.highlightColor: red
*color.green.highlightColor: green
*color.blue.highlightColor: blue
*color.yellow.highlightColor: yellow
*color.label: Color:
*color.labels: |red|green|blue|yellow
*color.selectionStyle: multi
*color.selection: 0
*allowShellResize: true
*beNiceToColormap: False
}
# Start up the GUI.
createObjects
activate
proc quit args { send client gkey q; deactivate unmap }
send button1 addCallback quit
|