blob: c763aad2a54839311de21239f085c53d578b9c27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// This creates a simple hello world window
package main
import (
"go.wit.com/log"
"go.wit.com/lib/gadgets"
)
// This initializes the first window, a group and a button
func makebasicWindow() *gadgets.BasicWindow {
log.Warn("start basicWindow")
basicWindow = gadgets.NewBasicWindow(myGui, "basic window test")
basicWindow.Make()
basicWindow.StandardClose()
basicWindow.Custom = func () {
log.Warn("got to close")
}
box1 := basicWindow.Box()
group1 := box1.NewGroup("choices")
group1.NewButton("hello", func() {})
// basicWindow.Draw()
return basicWindow
}
|