summaryrefslogtreecommitdiff
path: root/dropdown.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-17 21:21:29 -0600
committerJeff Carr <[email protected]>2024-01-17 21:21:29 -0600
commita6a3e1193fa7c77165f3ed2eb0031f319b4abdd0 (patch)
tree2c5a9fbf4dbc5f7bd5cb235542082da5eba342c6 /dropdown.go
parent8ef3fc7a73a004385d36561c6c8acc4be7e3e24b (diff)
work around a toolkit panic()v0.12.11
things should work when GUI is not really there Int() and Bool() helloworld works compiles and runs RawWindow shouldn't auto exit add StandardExit() Signed-off-by: Jeff Carr <[email protected]> Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'dropdown.go')
-rw-r--r--dropdown.go13
1 files changed, 6 insertions, 7 deletions
diff --git a/dropdown.go b/dropdown.go
index 9b65154..f5882a9 100644
--- a/dropdown.go
+++ b/dropdown.go
@@ -6,10 +6,10 @@ package gui
// since it is the same. confusing names? maybe...
import (
- "go.wit.com/log"
"go.wit.com/gui/widget"
)
+/*
// add a new entry to the dropdown name
func (n *Node) AddDropdownName(name string) {
if ! n.Ready() { return }
@@ -23,19 +23,18 @@ func (n *Node) SetDropdownName(name string) {
log.Warn("SetDropdownName() deprecated")
n.SetText(name)
}
+*/
-func (n *Node) NewDropdown(progname string) *Node {
- newNode := n.newNode(progname, widget.Dropdown)
- newNode.progname = progname
+func (n *Node) NewDropdown() *Node {
+ newNode := n.newNode("dropdown", widget.Dropdown)
// inform the toolkits
sendAction(newNode, widget.Add)
return newNode
}
-func (n *Node) NewCombobox(progname string) *Node {
- newNode := n.newNode(progname, widget.Combobox)
- newNode.progname = progname
+func (n *Node) NewCombobox() *Node {
+ newNode := n.newNode("combobox", widget.Combobox)
// inform the toolkits
sendAction(newNode, widget.Add)