diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -18,9 +18,10 @@ var basicWindow *gadgets.BasicWindow func main() { myGui = gui.New().Default() - myGui.LoadToolkit("nocui") + // myGui.LoadToolkit("nocui") helloworld() + basicWindow = makebasicWindow() // go will sit here until the window exits gui.Watchdog() @@ -28,7 +29,7 @@ func main() { // This initializes the first window and some widgets func helloworld() { - mainWindow = myGui.NewWindow("hello world") + mainWindow = myGui.NewWindow("hello world").SetProgName("BASEWIN1") box := mainWindow.NewBox("vbox", false) group := box.NewGroup("choices") @@ -37,7 +38,7 @@ func helloworld() { log.Println("world") }) grid.NewButton("show basic window", func() { - makebasicWindow() + basicWindow.Toggle() }) grid.NewLabel("apple") |
