more stuff for testing

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-02-01 22:00:23 -06:00
parent 8082a52862
commit 7a42716b98
2 changed files with 6 additions and 0 deletions

View File

@ -11,6 +11,9 @@ gocui: build
# ./gadgetwindow --gui gocui >/tmp/gadgetwindow.stderr 2>&1 # ./gadgetwindow --gui gocui >/tmp/gadgetwindow.stderr 2>&1
./gadgetwindow --gui gocui --tmp-log ./gadgetwindow --gui gocui --tmp-log
log:
tail -f /tmp/guilogfile
test-tmp-log: build test-tmp-log: build
./gadgetwindow --gui andlabs --tmp-log ./gadgetwindow --gui andlabs --tmp-log

View File

@ -83,6 +83,9 @@ func helloworld() {
group.NewButton("Hide apple", func() { group.NewButton("Hide apple", func() {
apple.Hide() apple.Hide()
}) })
group.NewCheckbox("test checkbox").SetChecked(true)
group.NewLabel("test label")
gadgets.NewBasicEntry(group, "test entry")
group.NewButton("set socks", func() { group.NewButton("set socks", func() {
section1.SetSocks("blue") section1.SetSocks("blue")
section2.SetSocks("green") section2.SetSocks("green")