summaryrefslogtreecommitdiff
path: root/basicWindow.go
diff options
context:
space:
mode:
Diffstat (limited to 'basicWindow.go')
-rw-r--r--basicWindow.go12
1 files changed, 8 insertions, 4 deletions
diff --git a/basicWindow.go b/basicWindow.go
index b4f864a..c763aad 100644
--- a/basicWindow.go
+++ b/basicWindow.go
@@ -2,19 +2,23 @@
package main
import (
- "go.wit.com/lib/gadgets"
"go.wit.com/log"
+ "go.wit.com/lib/gadgets"
)
// This initializes the first window, a group and a button
-func makebasicWindow() {
+func makebasicWindow() *gadgets.BasicWindow {
log.Warn("start basicWindow")
basicWindow = gadgets.NewBasicWindow(myGui, "basic window test")
basicWindow.Make()
- basicWindow.StandardExit()
+ basicWindow.StandardClose()
+ basicWindow.Custom = func () {
+ log.Warn("got to close")
+ }
box1 := basicWindow.Box()
group1 := box1.NewGroup("choices")
group1.NewButton("hello", func() {})
- basicWindow.Draw()
+ // basicWindow.Draw()
+ return basicWindow
}