Progress bars

... And also the Do function works now
This commit is contained in:
Sasha Koshka
2023-01-17 20:16:03 -05:00
parent b9be483869
commit 5e3dfeaadd
4 changed files with 105 additions and 4 deletions

View File

@@ -35,8 +35,10 @@ func formatTime () (timeString string) {
func tick (label *basic.Label, clock *fun.AnalogClock) {
for {
label.SetText(formatTime())
clock.SetTime(time.Now())
tomo.Do (func () {
label.SetText(formatTime())
clock.SetTime(time.Now())
})
time.Sleep(time.Second)
}
}