()
| 97 | } |
| 98 | |
| 99 | func counter() { |
| 100 | for { |
| 101 | time.Sleep(1 * time.Second) |
| 102 | count++ |
| 103 | |
| 104 | // Update the UI using the QueueMain function |
| 105 | ui.QueueMain(func() { |
| 106 | countLabel.SetText(fmt.Sprintf("%d", count)) |
| 107 | }) |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | func main() { |
| 112 | count = 0 |