This commit is contained in:
ton
2024-10-07 10:13:40 +07:00
parent aa1631742f
commit 3a7d696db6
9729 changed files with 1832837 additions and 161742 deletions

View File

@@ -113,9 +113,9 @@ proc DoDisplay {w} {
DoCtrlFrame $w
DoDetailFrame $w
if {[tk windowingsystem] ne "aqua"} {
ttk::button $w.show -text "\u00bb" -command [list ShowCtrl $w] -width 2
ttk::button $w.show -text "\xbb" -command [list ShowCtrl $w] -width 2
} else {
button $w.show -text "\u00bb" -command [list ShowCtrl $w] -width 2 -highlightbackground $C(bg)
button $w.show -text "\xbb" -command [list ShowCtrl $w] -width 2 -highlightbackground $C(bg)
}
place $w.show -in $w.c -relx 1 -rely 0 -anchor ne
update
@@ -153,9 +153,9 @@ proc DoCtrlFrame {w} {
raise $w.details
raise $w.details.cb
grid rowconfigure $w.ctrl 50 -weight 1
trace variable ::S(mode) w [list ActiveGUI $w]
trace variable ::S(details) w [list ActiveGUI $w]
trace variable ::S(speed) w [list ActiveGUI $w]
trace add variable ::S(mode) write [list ActiveGUI $w]
trace add variable ::S(details) write [list ActiveGUI $w]
trace add variable ::S(speed) write [list ActiveGUI $w]
grid $w.message -in $w.ctrl -row 98 -sticky ew -pady 5
grid $w.message.e -sticky nsew
@@ -185,7 +185,6 @@ proc DoDetailFrame {w} {
set w2 $w.details.f
ttk::frame $w2
set bd 2
ttk::label $w2.l -textvariable S(cnt) -background white
grid $w2.l - - - -sticky ew -row 0
for {set i 1} {1} {incr i} {
@@ -204,10 +203,10 @@ proc DoDetailFrame {w} {
proc ShowCtrl {w} {
if {[winfo ismapped $w.ctrl]} {
pack forget $w.ctrl
$w.show config -text "\u00bb"
$w.show config -text "\xbb"
} else {
pack $w.ctrl -side right -fill both -ipady 5
$w.show config -text "\u00ab"
$w.show config -text "\xab"
}
}
@@ -272,7 +271,7 @@ proc Go {w {who {}}} {
set now [clock clicks -milliseconds]
catch {after cancel $animationCallbacks(goldberg)}
if {$who ne ""} { ;# Start here for debugging
set S(active) $who;
set S(active) $who
set S(mode) $MGO
}
if {$S(mode) == -1} return ;# Debugging