diff options
| author | Jeff Carr <[email protected]> | 2024-01-01 15:43:50 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-01 15:43:50 -0600 |
| commit | 4e7bbd89900a733593f0848778103c1cf1a7145d (patch) | |
| tree | 22cd22124dd3ecba7c2a866b882d39aaf790d670 /toolkit/andlabs/button.go | |
| parent | 53ce3a8252090d5fb75d7fc1e3cd75a72c1415c6 (diff) | |
reorg to final resting place at go.wit.com/gui/guiv0.9.5
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/andlabs/button.go')
| -rw-r--r-- | toolkit/andlabs/button.go | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/toolkit/andlabs/button.go b/toolkit/andlabs/button.go deleted file mode 100644 index 1dbad5c..0000000 --- a/toolkit/andlabs/button.go +++ /dev/null @@ -1,31 +0,0 @@ -package main - -import ( - "github.com/andlabs/ui" - _ "github.com/andlabs/ui/winmanifest" -) - -func (p *node) newButton(n *node) { - log(debugToolkit, "newButton() START", n.Name) - - t := p.tk - if (t == nil) { - log(debugToolkit, "newButton() toolkit struct == nil. name=", n.Name) - return - } - - newt := new(guiWidget) - - b := ui.NewButton(n.Text) - newt.uiButton = b - newt.uiControl = b - newt.parent = t - - b.OnClicked(func(*ui.Button) { - n.doUserEvent() - }) - - n.tk = newt - p.place(n) - log(debugToolkit, "newButton() END", n.Name) -} |
