trying to debug box direction

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-02-07 15:24:06 -06:00
parent 89c14962b8
commit de85ed65b3
3 changed files with 8 additions and 7 deletions

View File

@ -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

View File

@ -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")

View File

@ -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()