summaryrefslogtreecommitdiff
path: root/entry.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2021-10-31 03:50:22 -0500
committerJeff Carr <[email protected]>2021-10-31 03:50:22 -0500
commite5638b8079728e66b09071ec8af1d2b423b9eb76 (patch)
tree8c91e0984492b2abab1086870caddcecbbfb491a /entry.go
parentedceb19a33643419d0e367d36a7753fb68ede470 (diff)
NODE: add a button in the hole that doesn't use the other hole
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'entry.go')
-rw-r--r--entry.go14
1 files changed, 5 insertions, 9 deletions
diff --git a/entry.go b/entry.go
index 12fc835..b2ef8f4 100644
--- a/entry.go
+++ b/entry.go
@@ -24,21 +24,17 @@ func (n *Node) NewLabel(text string) *Node {
return newNode
}
-func GetText(box *GuiBox, name string) string {
- if (box == nil) {
- log.Println("gui.GetText() ERROR box == nil")
- return ""
- }
- if (box.Window.EntryMap == nil) {
+func (b *GuiBox) GetText(name string) string {
+ if (b.Window.EntryMap == nil) {
log.Println("gui.GetText() ERROR b.Box.Window.EntryMap == nil")
return ""
}
- spew.Dump(box.Window.EntryMap)
- if (box.Window.EntryMap[name] == nil) {
+ spew.Dump(b.Window.EntryMap)
+ if (b.Window.EntryMap[name] == nil) {
log.Println("gui.GetText() ERROR box.Window.EntryMap[", name, "] == nil ")
return ""
}
- e := box.Window.EntryMap[name]
+ e := b.Window.EntryMap[name]
log.Println("gui.GetText() box.Window.EntryMap[", name, "] = ", e.UiEntry.Text())
log.Println("gui.GetText() END")
return e.UiEntry.Text()