summaryrefslogtreecommitdiff
path: root/test/main.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-03-17 14:14:29 -0400
committerPietro Gagliardi <[email protected]>2014-03-17 14:14:29 -0400
commite5425036e09dd5e1c929d55f245b384702639498 (patch)
tree6ce26ccabe84baabb166bcb5e1156b66f6737041 /test/main.go
parentad2208d370704d9f7475ebe55ca790eea1a64063 (diff)
Put the Label that changed each second in the main test.
Diffstat (limited to 'test/main.go')
-rw-r--r--test/main.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/main.go b/test/main.go
index 6023991..f99ace1 100644
--- a/test/main.go
+++ b/test/main.go
@@ -243,9 +243,13 @@ func myMain() {
}
}
+ ticker := time.Tick(time.Second)
+
mainloop:
for {
select {
+ case curtime := <-ticker:
+ l.SetText(curtime.String())
case <-w.Closing:
break mainloop
case <-b.Clicked: