4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
|
foreach i [array names ::Pref] {
# Skip unchanged options.
if {[info exists ::DefaultPref($i)]} {
if {$::DefaultPref($i) eq $::Pref($i)} {
continue
}
}
puts $ch [list set ::Pref($i) $::Pref($i)]
}
close $ch
tk_messageBox -icon info -title "Saved" -message \
"Preferences saved to:\n[file nativename $rcfile]"
|
>
|
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
|
foreach i [array names ::Pref] {
# Skip unchanged options.
if {[info exists ::DefaultPref($i)]} {
if {$::DefaultPref($i) eq $::Pref($i)} {
continue
}
puts $ch "# $i default : $::DefaultPref($i)"
}
puts $ch [list set ::Pref($i) $::Pref($i)]
}
close $ch
tk_messageBox -icon info -title "Saved" -message \
"Preferences saved to:\n[file nativename $rcfile]"
|