diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 21 |
1 files changed, 1 insertions, 20 deletions
@@ -10,9 +10,6 @@ package main import ( "go.wit.com/log" "go.wit.com/toolkits/tree" - "fyne.io/fyne/v2/app" - "fyne.io/fyne/v2/container" - "fyne.io/fyne/v2/widget" ) func init() { @@ -36,27 +33,11 @@ func init() { showOptions() go simpleStdin() - fynetest() } // this must be defined for plugin's, but is never run // if you build this as a non-plugin, this will run func main() { fynetest() -} - - -func fynetest() { - a := app.New() - w := a.NewWindow("Hello") - - hello := widget.NewLabel("Hello Fyne!") - w.SetContent(container.NewVBox( - hello, - widget.NewButton("Hi!", func() { - hello.SetText("Welcome :)") - }), - )) - - w.ShowAndRun() + a.Run() } |
