utoy/main.go

21 lines
353 B
Go
Raw Normal View History

2024-10-26 08:01:01 +08:00
package main
import (
"fyne.io/fyne/v2/app"
"fyne.io/fyne/v2/container"
"fyne.io/fyne/v2/widget"
// "github.com/fyne-io/fyne-x"
)
func main() {
a := app.New()
w := a.NewWindow("Hello")
hello := widget.NewLabel("Hello Fyne!")
w.SetContent(container.NewVBox(
hello, widget.NewButton("Hi!", func() {
hello.SetText("Welcome :)")
}),
))
}