diff options
| author | Jeff Carr <[email protected]> | 2024-02-29 03:06:17 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-29 03:06:17 -0600 |
| commit | 3539402c3718dd542b6bf2ff29c348bb260475ae (patch) | |
| tree | c6399470c2f5b7628c01a1fc183c4e1d74a0f659 /main.go | |
| parent | 5cc617335d449c44032907414169ea0c2e8af216 (diff) | |
opens multiple windows in demo modev0.0.1
Signed-off-by: Jeff Carr <[email protected]>
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() } |
