summaryrefslogtreecommitdiff
path: root/entry.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2022-10-16 10:09:16 -0500
committerJeff Carr <[email protected]>2022-10-16 10:09:16 -0500
commit3a99ad8b44fd6b58deda4d985bd46e62f27638ba (patch)
tree786245a6a226777eaafe058b673c178d0c379b9e /entry.go
parent2141e04328dcf4e4d6857fcc0a7cb551fc84fa07 (diff)
fix andlabs.ui.NewLabel()
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'entry.go')
-rw-r--r--entry.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/entry.go b/entry.go
index cafa7ac..cac04cf 100644
--- a/entry.go
+++ b/entry.go
@@ -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
}