-
Notifications
You must be signed in to change notification settings - Fork 0
/
makereservation.tcl.bak1
316 lines (300 loc) · 12.9 KB
/
makereservation.tcl.bak1
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
#############################################################################
# Generated by PAGE version 4.7
# in conjunction with Tcl version 8.6
# Apr 24, 2016 12:37:01 AM
set vTcl(actual_gui_bg) #d9d9d9
set vTcl(actual_gui_fg) #000000
set vTcl(actual_gui_menu_bg) #d9d9d9
set vTcl(actual_gui_menu_fg) #000000
set vTcl(complement_color) #d9d9d9
set vTcl(analog_color_p) #d9d9d9
set vTcl(analog_color_m) #d9d9d9
set vTcl(active_fg) #111111
#############################################################################
# vTcl Code to Load User Fonts
vTcl:font:add_font \
"-family {DejaVu Sans} -size 20 -weight normal -slant roman -underline 0 -overstrike 0" \
user \
vTcl:font10
#################################
#LIBRARY PROCEDURES
#
if {[info exists vTcl(sourcing)]} {
proc vTcl:project:info {} {
set base .top36
namespace eval ::widgets::$base {
set dflt,origin 0
set runvisible 1
}
set site_3_0 $base.fra38
set site_4_0 $site_3_0.scr47
set site_4_0 $site_3_0.scr48
set site_4_0 $site_3_0.fra59
set site_3_0 $base.fra73
namespace eval ::widgets_bindings {
set tagslist _TopLevel
}
namespace eval ::vTcl::modules::main {
set procs {
}
set compounds {
}
set projectType single
}
}
}
#################################
# USER DEFINED PROCEDURES
#
#################################
# GENERATED GUI PROCEDURES
#
proc vTclWindow.top36 {base} {
if {$base == ""} {
set base .top36
}
if {[winfo exists $base]} {
wm deiconify $base; return
}
set top $base
###################
# CREATING WIDGETS
###################
vTcl::widgets::core::toplevel::createCmd $top -class Toplevel \
-menu "$top.m36" -background {#d9d9d9} -highlightcolor black
wm focusmodel $top passive
wm geometry $top 600x450+304+139
update
# set in toplevel.wgt.
global vTcl
set vTcl(save,dflt,origin) 0
wm maxsize $top 1165 768
wm minsize $top 1 1
wm overrideredirect $top 0
wm resizable $top 1 1
wm deiconify $top
wm title $top "New Toplevel 1"
vTcl:DefineAlias "$top" "Toplevel1" vTcl:Toplevel:WidgetProc "" 1
frame $top.fra38 \
-borderwidth 2 -relief groove -background {#d9d9d9} -height 395 \
-highlightcolor black -width 555
vTcl:DefineAlias "$top.fra38" "searchtrain" vTcl:WidgetProc "Toplevel1" 1
set site_3_0 $top.fra38
label $site_3_0.lab39 \
-activebackground {#f9f9f9} -activeforeground black \
-background {#d9d9d9} -font $::vTcl(fonts,vTcl:font10,object) \
-foreground {#ffa300} -highlightcolor black -text {Search Train}
vTcl:DefineAlias "$site_3_0.lab39" "Label1-3" vTcl:WidgetProc "Toplevel1" 1
label $site_3_0.lab40 \
-activebackground {#f9f9f9} -activeforeground black \
-background {#d9d9d9} -foreground {#000000} -highlightcolor black \
-text {Deaparts from}
vTcl:DefineAlias "$site_3_0.lab40" "Label2-3" vTcl:WidgetProc "Toplevel1" 1
label $site_3_0.lab38 \
-background {#d9d9d9} -foreground {#000000} -text {Arrives At}
vTcl:DefineAlias "$site_3_0.lab38" "Label3-3" vTcl:WidgetProc "Toplevel1" 1
label $site_3_0.lab41 \
-background {#d9d9d9} -foreground {#000000} \
-text {Departure Date (DD/MM/YYYY)}
vTcl:DefineAlias "$site_3_0.lab41" "Label4-3" vTcl:WidgetProc "Toplevel1" 1
entry $site_3_0.ent43 \
-background white -font TkFixedFont -foreground {#000000} \
-insertbackground black
vTcl:DefineAlias "$site_3_0.ent43" "Entrydate" vTcl:WidgetProc "Toplevel1" 1
vTcl::widgets::ttk::scrolledlistbox::CreateCmd $site_3_0.scr47 \
-background {#d9d9d9} -height 59 -highlightcolor black -width 76
vTcl:DefineAlias "$site_3_0.scr47" "Scrolledlistbox1" vTcl:WidgetProc "Toplevel1" 1
$site_3_0.scr47.01 configure -background white \
-font TkFixedFont \
-foreground black \
-height 3 \
-highlightcolor #d9d9d9 \
-selectbackground #c4c4c4 \
-selectforeground black \
-width 10
vTcl::widgets::ttk::scrolledlistbox::CreateCmd $site_3_0.scr48 \
-background {#d9d9d9} -height 69 -highlightcolor black -width 76
vTcl:DefineAlias "$site_3_0.scr48" "Scrolledlistbox2" vTcl:WidgetProc "Toplevel1" 1
$site_3_0.scr48.01 configure -background white \
-font TkFixedFont \
-foreground black \
-height 3 \
-highlightcolor #d9d9d9 \
-selectbackground #c4c4c4 \
-selectforeground black \
-width 10
button $site_3_0.but49 \
-activebackground {#d9d9d9} -background {#d9d9d9} \
-foreground {#000000} -highlightcolor black -text {Find Trains}
vTcl:DefineAlias "$site_3_0.but49" "Buttonsearchtrain" vTcl:WidgetProc "Toplevel1" 1
frame $site_3_0.fra59 \
-borderwidth 2 -relief groove -background {#d9d9d9} -height 375 \
-width 545
vTcl:DefineAlias "$site_3_0.fra59" "searchdeparture" vTcl:WidgetProc "Toplevel1" 1
set site_4_0 $site_3_0.fra59
label $site_4_0.cpd60 \
-activebackground {#f9f9f9} -activeforeground black \
-background {#d9d9d9} -font $::vTcl(fonts,vTcl:font10,object) \
-foreground {#ffa300} -highlightcolor black -text {Search Departure}
vTcl:DefineAlias "$site_4_0.cpd60" "Label4-4" vTcl:WidgetProc "Toplevel1" 1
label $site_4_0.lab62 \
-background {#d9d9d9} -foreground {#000000} -text {Select Train}
vTcl:DefineAlias "$site_4_0.lab62" "Label5-4" vTcl:WidgetProc "Toplevel1" 1
ttk::combobox $site_4_0.tCo63 \
-textvariable combobox -foreground {} -background {} -takefocus {}
vTcl:DefineAlias "$site_4_0.tCo63" "TCombobox1" vTcl:WidgetProc "Toplevel1" 1
ttk::label $site_4_0.tLa64 \
-background {#d9d9d9} -foreground {#000000} -relief flat -text {} \
-textvariable deptime
vTcl:DefineAlias "$site_4_0.tLa64" "departue time" vTcl:WidgetProc "Toplevel1" 1
ttk::label $site_4_0.tLa65 \
-background {#d9d9d9} -foreground {#000000} -relief flat -text time
vTcl:DefineAlias "$site_4_0.tLa65" "tlabel" vTcl:WidgetProc "Toplevel1" 1
ttk::combobox $site_4_0.tCo67 \
-textvariable combobox -foreground {} -background {} -takefocus {}
vTcl:DefineAlias "$site_4_0.tCo67" "TCombobox2" vTcl:WidgetProc "Toplevel1" 1
label $site_4_0.lab68 \
-background {#d9d9d9} -foreground {#000000} -text {Select class}
vTcl:DefineAlias "$site_4_0.lab68" "Label6" vTcl:WidgetProc "Toplevel1" 1
label $site_4_0.lab69 \
-background {#d9d9d9} -foreground {#000000} -text Cost
vTcl:DefineAlias "$site_4_0.lab69" "Label7" vTcl:WidgetProc "Toplevel1" 1
ttk::label $site_4_0.tLa70 \
-background {#d9d9d9} -foreground {#000000} -relief flat \
-textvariable depticketcost
vTcl:DefineAlias "$site_4_0.tLa70" "ticketcost" vTcl:WidgetProc "Toplevel1" 1
button $site_4_0.but71 \
-activebackground {#d9d9d9} -background {#d9d9d9} \
-foreground {#000000} -highlightcolor black -text back
vTcl:DefineAlias "$site_4_0.but71" "Buttontosearch" vTcl:WidgetProc "Toplevel1" 1
button $site_4_0.but72 \
-activebackground {#d9d9d9} -background {#d9d9d9} \
-foreground {#000000} -highlightcolor black -text Next
vTcl:DefineAlias "$site_4_0.but72" "Buttontoextras" vTcl:WidgetProc "Toplevel1" 1
place $site_4_0.cpd60 \
-in $site_4_0 -x 170 -y 20 -width 251 -height 53 -anchor nw \
-bordermode inside
place $site_4_0.lab62 \
-in $site_4_0 -x 50 -y 80 -anchor nw -bordermode ignore
place $site_4_0.tCo63 \
-in $site_4_0 -x 50 -y 100 -anchor nw -bordermode ignore
place $site_4_0.tLa64 \
-in $site_4_0 -x 60 -y 140 -width 82 -height 26 -anchor nw \
-bordermode ignore
place $site_4_0.tLa65 \
-in $site_4_0 -x 60 -y 130 -anchor nw -bordermode ignore
place $site_4_0.tCo67 \
-in $site_4_0 -x 300 -y 100 -anchor nw -bordermode ignore
place $site_4_0.lab68 \
-in $site_4_0 -x 300 -y 80 -anchor nw -bordermode ignore
place $site_4_0.lab69 \
-in $site_4_0 -x 300 -y 130 -anchor nw -bordermode ignore
place $site_4_0.tLa70 \
-in $site_4_0 -x 300 -y 150 -width 87 -height 26 -anchor nw \
-bordermode ignore
place $site_4_0.but71 \
-in $site_4_0 -x 100 -y 220 -anchor nw -bordermode ignore
place $site_4_0.but72 \
-in $site_4_0 -x 330 -y 220 -anchor nw -bordermode ignore
place $site_3_0.lab39 \
-in $site_3_0 -x 190 -y 20 -anchor nw -bordermode ignore
place $site_3_0.lab40 \
-in $site_3_0 -x 120 -y 90 -anchor nw -bordermode ignore
place $site_3_0.lab38 \
-in $site_3_0 -x 130 -y 170 -anchor nw -bordermode ignore
place $site_3_0.lab41 \
-in $site_3_0 -x 40 -y 240 -anchor nw -bordermode ignore
place $site_3_0.ent43 \
-in $site_3_0 -x 240 -y 240 -anchor nw -bordermode ignore
place $site_3_0.scr47 \
-in $site_3_0 -x 230 -y 90 -width 76 -height 59 -anchor nw \
-bordermode ignore
place $site_3_0.scr48 \
-in $site_3_0 -x 230 -y 160 -width 76 -height 69 -anchor nw \
-bordermode ignore
place $site_3_0.but49 \
-in $site_3_0 -x 240 -y 280 -anchor nw -bordermode ignore
place $site_3_0.fra59 \
-in $site_3_0 -x 0 -y 0 -width 545 -height 375 -anchor nw \
-bordermode ignore
menu $top.m36 \
-activebackground {#d9d9d9} -activeforeground black \
-background {#d9d9d9} -font TkMenuFont -foreground {#000000} \
-tearoff 0
frame $top.fra73 \
-borderwidth 2 -relief groove -background {#d9d9d9} -height 335 \
-width 555
vTcl:DefineAlias "$top.fra73" "Frame2" vTcl:WidgetProc "Toplevel1" 1
set site_3_0 $top.fra73
label $site_3_0.cpd74 \
-activebackground {#f9f9f9} -activeforeground black \
-background {#d9d9d9} -font $::vTcl(fonts,vTcl:font10,object) \
-foreground {#ffa300} -highlightcolor black \
-text {Travel Extras & Passenger Info}
vTcl:DefineAlias "$site_3_0.cpd74" "Label8-3" vTcl:WidgetProc "Toplevel1" 1
ttk::combobox $site_3_0.tCo75 \
-textvariable combobox -foreground {} -background {} -takefocus {}
vTcl:DefineAlias "$site_3_0.tCo75" "TCombobox3" vTcl:WidgetProc "Toplevel1" 1
label $site_3_0.lab76 \
-background {#d9d9d9} -foreground {#000000} -text {Number of Baggage}
vTcl:DefineAlias "$site_3_0.lab76" "Label9" vTcl:WidgetProc "Toplevel1" 1
entry $site_3_0.ent77 \
-background white -font TkFixedFont -foreground {#000000} \
-insertbackground black
vTcl:DefineAlias "$site_3_0.ent77" "Entry2" vTcl:WidgetProc "Toplevel1" 1
button $site_3_0.but78 \
-activebackground {#d9d9d9} -background {#d9d9d9} \
-foreground {#000000} -highlightcolor black -text {Passenger name}
vTcl:DefineAlias "$site_3_0.but78" "Button4" vTcl:WidgetProc "Toplevel1" 1
button $site_3_0.but79 \
-activebackground {#d9d9d9} -background {#d9d9d9} \
-foreground {#000000} -highlightcolor black -text Back
vTcl:DefineAlias "$site_3_0.but79" "Button5" vTcl:WidgetProc "Toplevel1" 1
button $site_3_0.but80 \
-activebackground {#d9d9d9} -background {#d9d9d9} \
-foreground {#000000} -highlightcolor black -text Next
vTcl:DefineAlias "$site_3_0.but80" "Button6" vTcl:WidgetProc "Toplevel1" 1
place $site_3_0.cpd74 \
-in $site_3_0 -x 62 -y 2 -width 421 -height 63 -anchor nw \
-bordermode inside
place $site_3_0.tCo75 \
-in $site_3_0 -x 250 -y 110 -width 117 -height 18 -anchor nw \
-bordermode ignore
place $site_3_0.lab76 \
-in $site_3_0 -x 90 -y 110 -anchor nw -bordermode ignore
place $site_3_0.ent77 \
-in $site_3_0 -x 260 -y 150 -anchor nw -bordermode ignore
place $site_3_0.but78 \
-in $site_3_0 -x 100 -y 150 -anchor nw -bordermode ignore
place $site_3_0.but79 \
-in $site_3_0 -x 90 -y 230 -anchor nw -bordermode ignore
place $site_3_0.but80 \
-in $site_3_0 -x 330 -y 230 -anchor nw -bordermode ignore
###################
# SETTING GEOMETRY
###################
place $top.fra38 \
-in $top -x 20 -y 30 -width 555 -height 395 -anchor nw \
-bordermode ignore
place $top.fra73 \
-in $top -x 20 -y 50 -width 555 -height 335 -anchor nw \
-bordermode ignore
vTcl:FireEvent $base <<Ready>>
}
#############################################################################
## Binding tag: _TopLevel
bind "_TopLevel" <<Create>> {
if {![info exists _topcount]} {set _topcount 0}; incr _topcount
}
bind "_TopLevel" <<DeleteWindow>> {
if {[set ::%W::_modal]} {
vTcl:Toplevel:WidgetProc %W endmodal
} else {
destroy %W; if {$_topcount == 0} {exit}
}
}
bind "_TopLevel" <Destroy> {
if {[winfo toplevel %W] == "%W"} {incr _topcount -1}
}
Window show .
Window show .top36