diff options
| author | Jeff Carr <[email protected]> | 2021-10-31 03:50:22 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2021-10-31 03:50:22 -0500 |
| commit | e5638b8079728e66b09071ec8af1d2b423b9eb76 (patch) | |
| tree | 8c91e0984492b2abab1086870caddcecbbfb491a /entry.go | |
| parent | edceb19a33643419d0e367d36a7753fb68ede470 (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.go | 14 |
1 files changed, 5 insertions, 9 deletions
@@ -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() |
