ppforge/app.go

27 lines
434 B
Go

package npc
import (
"fyne.io/fyne/v2/app"
"fyne.io/fyne/v2/container"
"fyne.io/fyne/v2/widget"
)
func Appmain() {
a := app.New()
w := a.NewWindow("Hello")
hello := widget.NewLabel("Hello Fyne!")
w.SetContent(container.NewBorder(
hello,
nil,
nil,
nil,
container.NewVScroll(GetFieldEditor().Representation),
// widget.NewButton("Hi!", func() {
// hello.SetText("Welcome :)")
// }),
))
w.ShowAndRun()
}