2022-11-23 20:33:07 +01:00
|
|
|
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,
|
2022-11-24 13:50:08 +01:00
|
|
|
container.NewVScroll(GetFieldEditor().Representation),
|
2022-11-23 20:33:07 +01:00
|
|
|
// widget.NewButton("Hi!", func() {
|
|
|
|
// hello.SetText("Welcome :)")
|
|
|
|
// }),
|
|
|
|
))
|
|
|
|
|
|
|
|
w.ShowAndRun()
|
|
|
|
}
|