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
|
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
|
-
-
-
-
-
-
-
-
+
+
+
+
+
+
|
$w insert end [subst -nocommands -novariables $data] $tags
set data ""
}
}
}
proc makeHelpWin {} {
global Pref
set doc [file join $::eskil(thisDir) .. doc/eskil.txt]
if {![file exists $doc]} return
set w [helpWin .he "Eskil Help"]
set t [Scroll y text $w.t -width 85 -height 35]
pack $w.t -side top -expand 1 -fill both
configureDocWin $t
# Set up tags for change marks
$t tag configure new1 -foreground $Pref(colornew1) \
-background $Pref(bgnew1)
$t tag configure new2 -foreground $Pref(colornew2) \
-background $Pref(bgnew2)
$t tag configure change -foreground $Pref(colorchange) \
-background $Pref(bgchange)
$t tag configure new1 -foreground $::Pref(colornew1) \
-background $::Pref(bgnew1)
$t tag configure new2 -foreground $::Pref(colornew2) \
-background $::Pref(bgnew2)
$t tag configure change -foreground $::Pref(colorchange) \
-background $::Pref(bgchange)
$t tag configure ul -underline 1
set width [font measure [$t cget -font] [string repeat x 20]]
$t configure -tabs [list $width [expr {$width * 3/2}] [expr {$width * 2}]]
set width [font measure docFontP [string repeat x 36]]
$t tag configure example -tabs [list $width] -wrap none
|
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
|
218
219
220
221
222
223
224
225
226
227
228
229
230
231
|
-
-
|
insertTaggedText $t $::eskil(thisDir)/../doc/$fileName
#focus $t
$t configure -state disabled
}
proc makeTutorialWin {} {
global Pref
set doc [file join $::eskil(thisDir) .. doc/tutorial.txt]
if {![file exists $doc]} return
if {[catch {cd [file join $::eskil(thisDir) .. examples]}]} {
tk_messageBox -icon error -title "Eskil Error" -message \
"Could not locate examples directory." \
-type ok
|