trying to debug box direction
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
89c14962b8
commit
de85ed65b3
6
Makefile
6
Makefile
|
@ -8,11 +8,11 @@ nocui: build
|
|||
|
||||
gocui: build
|
||||
reset
|
||||
# ./gadgetwindow --gui gocui >/tmp/gadgetwindow.stderr 2>&1
|
||||
./gadgetwindow --gui gocui --tmp-log
|
||||
./gadgetwindow --gui gocui >/tmp/gadgetwindow.stderr 2>&1
|
||||
# ./gadgetwindow --gui gocui --tmp-log
|
||||
|
||||
log:
|
||||
tail -f /tmp/guilogfile /tmp/witgui.*
|
||||
tail -f /tmp/guilogfile /tmp/witgui.* /tmp/gadget*
|
||||
|
||||
test-tmp-log: build
|
||||
./gadgetwindow --gui andlabs --tmp-log
|
||||
|
|
5
main.go
5
main.go
|
@ -32,9 +32,6 @@ func main() {
|
|||
log.SetTmp()
|
||||
}
|
||||
myGui = gui.New()
|
||||
// myGui.LoadToolkit("andlabs")
|
||||
// myGui.LoadToolkit("nocui")
|
||||
|
||||
myGui.Default()
|
||||
|
||||
helloworld()
|
||||
|
@ -57,6 +54,8 @@ func helloworld() {
|
|||
mainWindow = myGui.NewWindow("hello world").SetProgName("BASEWIN1")
|
||||
|
||||
box := mainWindow.NewBox("hbox", true)
|
||||
// box := mainWindow.Box().Vertical()
|
||||
// box := mainWindow.Box().Horizontal()
|
||||
section1 = newChoices(box)
|
||||
|
||||
group := box.NewGroup("interact")
|
||||
|
|
|
@ -23,7 +23,9 @@ func makebasicWindow() *gadgets.BasicWindow {
|
|||
box1 := basicWindow.Box()
|
||||
section2 = newChoices(box1)
|
||||
|
||||
vbox := box1.NewBox("vbox", false)
|
||||
// vbox := box1.NewBox("vbox", false)
|
||||
// vbox := box1.Box().Vertical()
|
||||
vbox := box1.Box().Horizontal()
|
||||
group1 := vbox.NewGroup("controls").Horizontal() // Vertical()
|
||||
group1.NewButton("hide apple", func() {
|
||||
apple.Hide()
|
||||
|
|
Loading…
Reference in New Issue