diff options
| author | Jeff Carr <[email protected]> | 2022-10-17 22:39:03 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2022-10-17 22:39:03 -0500 |
| commit | 15baefd9a7d145ddffced80d0fb6c14f258bdcc9 (patch) | |
| tree | 633838faafa5c545635e77d441455bc8eb47958f /cmds/helloworld | |
| parent | 7e32b1fb9a44624ce2d4a8bc5c6acd5fafc820f3 (diff) | |
GROUP: implement 'group' in toolkit/
move gui.group into toolkit
remove duplicate code
update demo
Diffstat (limited to 'cmds/helloworld')
| -rw-r--r-- | cmds/helloworld/Makefile | 4 | ||||
| -rw-r--r-- | cmds/helloworld/main.go | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/cmds/helloworld/Makefile b/cmds/helloworld/Makefile index f18abaf..1d12c3c 100644 --- a/cmds/helloworld/Makefile +++ b/cmds/helloworld/Makefile @@ -1,11 +1,11 @@ run: build ./helloworld -build: +build-release: go get -v -u -x . go build -build-master: +build: GO111MODULE="off" go get -v -x . GO111MODULE="off" go build ./helloworld diff --git a/cmds/helloworld/main.go b/cmds/helloworld/main.go index 6e52a0b..bc0a046 100644 --- a/cmds/helloworld/main.go +++ b/cmds/helloworld/main.go @@ -26,8 +26,9 @@ func initGUI() { func addDemoTab(n *gui.Node, title string) { newNode := n.AddTab(title, nil) - groupNode1 := newNode.AddGroup("group 1") - groupNode1.AddComboBox("demoCombo2", "more 1", "more 2", "more 3") + g := newNode.NewGroup("group 1") + // g.Dump() + g.AddComboBox("demoCombo2", "more 1", "more 2", "more 3") } func myDefaultExit(n *gui.Node) { |
