diff options
| author | Jeff Carr <[email protected]> | 2022-10-16 10:09:16 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2022-10-16 10:09:16 -0500 |
| commit | 3a99ad8b44fd6b58deda4d985bd46e62f27638ba (patch) | |
| tree | 786245a6a226777eaafe058b673c178d0c379b9e /entry.go | |
| parent | 2141e04328dcf4e4d6857fcc0a7cb551fc84fa07 (diff) | |
fix andlabs.ui.NewLabel()
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'entry.go')
| -rw-r--r-- | entry.go | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -3,8 +3,12 @@ package gui import "log" // import "fmt" +import toolkit "git.wit.org/wit/gui/toolkit/andlabs" + import "github.com/andlabs/ui" import _ "github.com/andlabs/ui/winmanifest" + + import "github.com/davecgh/go-spew/spew" // functions for handling text entry boxes @@ -18,7 +22,9 @@ func (n *Node) NewLabel(text string) *Node { newNode := makeNode(n, text, 333, 334) newNode.Dump() - n.Append(newNode) + t := toolkit.NewLabel(n.uiBox, text) + newNode.Toolkit = t + return newNode } |
