summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go21
1 files changed, 1 insertions, 20 deletions
diff --git a/main.go b/main.go
index 1fe2a1a..66100f9 100644
--- a/main.go
+++ b/main.go
@@ -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()
}