diff options
| author | Jeff Carr <[email protected]> | 2022-10-19 13:23:22 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2022-10-19 13:23:22 -0500 |
| commit | f3af1f5b7ff78b3f73d7510622fc9633dec36d35 (patch) | |
| tree | e4868584d5e19942938aaa122b2e1cab377db000 /spinbox.go | |
| parent | f7b1036e544238d65b0e3ad46d08075aa4177032 (diff) | |
Refactor to 'gui/toolkit/'
* add a example cmds/consolemouse
uses a console button to launch the andlabs/ui
* fix wrong return value in toolkit/NewLabel()
* redirect STDIN output to a file
* wonderful fix of Window() exit
* finally remove the ancient stupid variables x & y
* phase out struct 'box' and use 'node' instead
* better names for things: use NewFoo() and NewBar()
Diffstat (limited to 'spinbox.go')
| -rw-r--r-- | spinbox.go | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -8,8 +8,7 @@ func (n *Node) NewSpinbox(name string, x int, y int) *Node { // make new node here log.Println("toolkit.NewSpinbox", x, y) - newNode := n.makeNode(name, 767, 676 + Config.counter) - newNode.Name = name + newNode := n.New(name) t := toolkit.NewSpinbox(n.uiBox, name, x, y) t.OnChanged = func(t *toolkit.Toolkit) { |
