21 lines
274 B
Go
21 lines
274 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"fyne.io/fyne/app"
|
||
|
"fyne.io/fyne/widget"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
app := app.New()
|
||
|
|
||
|
w := app.NewWindow("Hello")
|
||
|
w.SetContent(widget.NewVBox(
|
||
|
widget.NewLabel("Hello Fyne!"),
|
||
|
widget.NewButton("Quit", func() {
|
||
|
app.Quit()
|
||
|
}),
|
||
|
))
|
||
|
|
||
|
w.ShowAndRun()
|
||
|
}
|