-
Notifications
You must be signed in to change notification settings - Fork 0
/
GenAboutBox.tcl.bak3
184 lines (173 loc) · 6.9 KB
/
GenAboutBox.tcl.bak3
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
#############################################################################
# Generated by PAGE version 5.5
# in conjunction with Tcl version 8.6
# Oct 20, 2020 12:58:33 PM CEST platform: Windows NT
set vTcl(timestamp) ""
if {![info exists vTcl(borrow)]} {
tk_messageBox -title Error -message "You must open project files from within PAGE."
exit}
if {!$vTcl(borrow) && !$vTcl(template)} {
set vTcl(actual_gui_font_dft_desc) TkDefaultFont
set vTcl(actual_gui_font_dft_name) TkDefaultFont
set vTcl(actual_gui_font_text_desc) TkTextFont
set vTcl(actual_gui_font_text_name) TkTextFont
set vTcl(actual_gui_font_fixed_desc) TkFixedFont
set vTcl(actual_gui_font_fixed_name) TkFixedFont
set vTcl(actual_gui_font_menu_desc) TkMenuFont
set vTcl(actual_gui_font_menu_name) TkMenuFont
set vTcl(actual_gui_font_tooltip_desc) TkDefaultFont
set vTcl(actual_gui_font_tooltip_name) TkDefaultFont
set vTcl(actual_gui_font_treeview_desc) TkDefaultFont
set vTcl(actual_gui_font_treeview_name) TkDefaultFont
set vTcl(actual_gui_bg) #d9d9d9
set vTcl(actual_gui_fg) #000000
set vTcl(actual_gui_analog) #ececec
set vTcl(actual_gui_menu_analog) #ececec
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) #000000
set vTcl(actual_gui_menu_active_bg) #d8d8d8
set vTcl(actual_gui_menu_active_fg) #000000
set vTcl(pr,autoalias) 1
set vTcl(pr,relative_placement) 0
set vTcl(mode) Absolute
}
proc vTclWindow.top37 {base} {
global vTcl
if {$base == ""} {
set base .top37
}
if {[winfo exists $base]} {
wm deiconify $base; return
}
set top $base
###################
# CREATING WIDGETS
###################
vTcl::widgets::core::toplevel::createCmd $top -class Toplevel \
-background $vTcl(actual_gui_bg) \
-highlightbackground $vTcl(actual_gui_bg) -highlightcolor black
wm focusmodel $top passive
wm geometry $top 459x535+341+118
update
# set in toplevel.wgt.
global vTcl
global img_list
set vTcl(save,dflt,origin) 0
wm maxsize $top 1265 770
wm minsize $top 120 1
wm overrideredirect $top 0
wm resizable $top 1 1
wm deiconify $top
wm title $top "About"
vTcl:DefineAlias "$top" "About" vTcl:Toplevel:WidgetProc "" 1
set vTcl(real_top) {}
vTcl:withBusyCursor {
label $top.lab38 \
-activebackground #f9f9f9 -activeforeground black \
-background $vTcl(actual_gui_bg) -disabledforeground #a3a3a3 \
-font TkDefaultFont -foreground $vTcl(actual_gui_fg) \
-highlightbackground $vTcl(actual_gui_bg) -highlightcolor black \
-relief sunken -text Label
vTcl:DefineAlias "$top.lab38" "lblProgName" vTcl:WidgetProc "About" 1
label $top.lab39 \
-activebackground #f9f9f9 -activeforeground black \
-background $vTcl(actual_gui_bg) -disabledforeground #a3a3a3 \
-font TkDefaultFont -foreground $vTcl(actual_gui_fg) \
-highlightbackground $vTcl(actual_gui_bg) -highlightcolor black \
-relief sunken -text Label
vTcl:DefineAlias "$top.lab39" "lblVersion" vTcl:WidgetProc "About" 1
label $top.lab40 \
-activebackground #f9f9f9 -activeforeground black \
-background $vTcl(actual_gui_bg) -disabledforeground #a3a3a3 \
-font TkDefaultFont -foreground $vTcl(actual_gui_fg) \
-highlightbackground $vTcl(actual_gui_bg) -highlightcolor black \
-relief sunken -text Label
vTcl:DefineAlias "$top.lab40" "lblAuthor" vTcl:WidgetProc "About" 1
label $top.lab41 \
-activebackground #f9f9f9 -activeforeground black \
-background $vTcl(actual_gui_bg) -disabledforeground #a3a3a3 \
-font TkDefaultFont -foreground $vTcl(actual_gui_fg) \
-highlightbackground $vTcl(actual_gui_bg) -highlightcolor black \
-relief sunken -text Label
vTcl:DefineAlias "$top.lab41" "lblCopyright" vTcl:WidgetProc "About" 1
vTcl::widgets::ttk::scrolledtext::CreateCmd $top.scr42 \
-borderwidth 2 -relief groove -background $vTcl(actual_gui_bg) \
-height 75 -highlightbackground $vTcl(actual_gui_bg) \
-highlightcolor black -width 125
vTcl:DefineAlias "$top.scr42" "Scrolledtext1" vTcl:WidgetProc "About" 1
$top.scr42.01 configure -background white \
-font TkTextFont \
-foreground black \
-height 3 \
-highlightbackground #d9d9d9 \
-highlightcolor black \
-insertbackground black \
-insertborderwidth 3 \
-selectbackground #c4c4c4 \
-selectforeground black \
-width 10 \
-wrap word
button $top.but43 \
-activebackground $vTcl(analog_color_m) -activeforeground black \
-background $vTcl(actual_gui_bg) -disabledforeground #a3a3a3 \
-font TkDefaultFont -foreground $vTcl(actual_gui_fg) \
-highlightbackground $vTcl(actual_gui_bg) -highlightcolor black \
-pady 0 -text Dismiss
vTcl:DefineAlias "$top.but43" "btnDismiss" vTcl:WidgetProc "About" 1
bind $top.but43 <Button-1> {
lambda e: OnBtnDismiss(e)
}
label $top.lab45 \
-activebackground #f9f9f9 -activeforeground black \
-background $vTcl(actual_gui_bg) -disabledforeground #a3a3a3 \
-font TkDefaultFont -foreground $vTcl(actual_gui_fg) \
-highlightbackground $vTcl(actual_gui_bg) -highlightcolor #0000ff \
-relief sunken -text Label
vTcl:DefineAlias "$top.lab45" "lblHomepage" vTcl:WidgetProc "About" 1
bind $top.lab45 <Button-1> {
lambda e: lblHomepage_LeftClick(url)
}
###################
# SETTING GEOMETRY
###################
place $top.lab38 \
-in $top -x 10 -y 20 -width 436 -relwidth 0 -height 29 -relheight 0 \
-anchor nw -bordermode ignore
place $top.lab39 \
-in $top -x 10 -y 52 -width 436 -height 29 -anchor nw \
-bordermode ignore
place $top.lab40 \
-in $top -x 10 -y 84 -width 436 -height 29 -anchor nw \
-bordermode ignore
place $top.lab41 \
-in $top -x 10 -y 110 -width 436 -height 29 -anchor nw \
-bordermode ignore
place $top.scr42 \
-in $top -x 10 -y 180 -width 438 -relwidth 0 -height 280 -relheight 0 \
-anchor nw -bordermode ignore
place $top.but43 \
-in $top -x 130 -y 470 -width 177 -relwidth 0 -height 37 -relheight 0 \
-anchor nw -bordermode ignore
place $top.lab45 \
-in $top -x 10 -y 140 -width 436 -relwidth 0 -height 29 -relheight 0 \
-anchor nw -bordermode ignore
} ;# end vTcl:withBusyCursor
vTcl:FireEvent $base <<Ready>>
}
set btop ""
if {$vTcl(borrow)} {
set btop .bor[expr int([expr rand() * 100])]
while {[lsearch $btop $vTcl(tops)] != -1} {
set btop .bor[expr int([expr rand() * 100])]
}
}
set vTcl(btop) $btop
Window show .
Window show .top37 $btop
if {$vTcl(borrow)} {
$btop configure -background plum
}