diff options
| author | Jeff Carr <[email protected]> | 2024-01-17 20:26:07 -0600 | 
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-17 20:26:07 -0600 | 
| commit | 4f59e4bb8d7829f81faeda5a3455f88e9335cce1 (patch) | |
| tree | a2516a6c44de718f889c01b820124d7d32526d9e | |
| parent | b39e2e1c5e055b705c7cc6b6234bfa342e3c100c (diff) | |
runs against nocui
Signed-off-by: Jeff Carr <[email protected]>
| -rw-r--r-- | Makefile | 4 | ||||
| -rw-r--r-- | main.go | 10 | 
2 files changed, 12 insertions, 2 deletions
@@ -1,8 +1,8 @@  all: build -	./helloworld +	./basicwindow  build: -	-rm -f helloworld +	-rm -f basicwindow  	go build -v -x  stderr: build @@ -4,6 +4,7 @@ package main  import 	(  	"go.wit.com/log"  	"go.wit.com/gui/gui" +	"go.wit.com/gui/gadgets"  )  var myGui *gui.Node // This is the beginning of the binary tree of widgets @@ -19,6 +20,15 @@ func main() {  // This initializes the first window, a group and a button  func helloworld() { +	basicWin := gadgets.NewBasicWindow(myGui, "basic window test") +	basicWin.Make() +	basicWin.StandardExit() + +	box1 := basicWin.Box() +	group1 := box1.NewGroup("choices") +	group1.NewButton("hello", func() {}) +	basicWin.Draw() +  	window := myGui.NewWindow("hello world")  	box := window.NewBox("vbox", false)  | 
