diff options
| author | Jeff Carr <[email protected]> | 2024-01-18 00:12:59 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-18 00:12:59 -0600 |
| commit | 0674bd89b798f7512462402817c496e8a80ac3d4 (patch) | |
| tree | 2d520204b18c5cb09481b461642cb183db8bf74a /andlabs/button.go | |
| parent | a0baba0821441d9cf38f0b33fe12fb96925c6236 (diff) | |
move everything into seperate repos
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'andlabs/button.go')
| -rw-r--r-- | andlabs/button.go | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/andlabs/button.go b/andlabs/button.go deleted file mode 100644 index 20a6541..0000000 --- a/andlabs/button.go +++ /dev/null @@ -1,30 +0,0 @@ -package main - -import ( - "go.wit.com/toolkits/tree" - - "go.wit.com/dev/andlabs/ui" - _ "go.wit.com/dev/andlabs/ui/winmanifest" -) - -// func (p *node) newButton(n *node) { -func newButton(p *tree.Node, n *tree.Node) { - if notNew(n) { - return - } - var ptk *guiWidget - ptk = p.TK.(*guiWidget) - newt := new(guiWidget) - - b := ui.NewButton(n.GetLabel()) - newt.uiButton = b - newt.uiControl = b - newt.parent = ptk - - b.OnClicked(func(*ui.Button) { - me.myTree.DoUserEvent(n) - }) - - n.TK = newt - place(p, n) -} |
