This commit is contained in:
Bel LaPointe
2025-02-17 17:40:53 -07:00
parent e565f1f8d8
commit d0e2384e4c
4 changed files with 716 additions and 4 deletions

25
cmd/fyne/main.go Normal file
View File

@@ -0,0 +1,25 @@
package main
import (
"time"
"fyne.io/fyne/v2/app"
"fyne.io/fyne/v2/widget"
)
func main() {
a := app.New()
w := a.NewWindow("Hello World")
defer w.ShowAndRun()
l := widget.NewLabel("")
w.SetContent(l)
go func() {
for range time.NewTicker(time.Second).C {
{
l.SetText(time.Now().Format("2006-01-02T15:04:05"))
}
}
}()
}