Put the Label that changed each second in the main test.
This commit is contained in:
parent
ad2208d370
commit
e5425036e0
|
@ -9,7 +9,7 @@ The issue:
|
||||||
- this fools Go's deadlock detector; it never reports anything
|
- this fools Go's deadlock detector; it never reports anything
|
||||||
- changing from standard mutexes to R/W mutexes does not work
|
- changing from standard mutexes to R/W mutexes does not work
|
||||||
- making resizes concurrent causes resizes to become too slow to be acceptable (they trail behind the actual user resizing by a significant amount)
|
- making resizes concurrent causes resizes to become too slow to be acceptable (they trail behind the actual user resizing by a significant amount)
|
||||||
If you know a better way I can do things, **please** help... I'm at my wits end here<br>`test/test -area` will run the Area test with the ticking label; I should probably add one to the main test so it can be tested on all platforms...
|
If you know a better way I can do things, **please** help... I'm at my wits end here<br>The main test (`test/test`) now has its label show the current time; GTK+ users can run `test/test -area` for the Area test that sparked this whole calamity.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -243,9 +243,13 @@ func myMain() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ticker := time.Tick(time.Second)
|
||||||
|
|
||||||
mainloop:
|
mainloop:
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
|
case curtime := <-ticker:
|
||||||
|
l.SetText(curtime.String())
|
||||||
case <-w.Closing:
|
case <-w.Closing:
|
||||||
break mainloop
|
break mainloop
|
||||||
case <-b.Clicked:
|
case <-b.Clicked:
|
||||||
|
|
Loading…
Reference in New Issue