From e5425036e09dd5e1c929d55f245b384702639498 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 17 Mar 2014 14:14:29 -0400 Subject: Put the Label that changed each second in the main test. --- test/main.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') 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: -- cgit v1.2.3