diff options
Diffstat (limited to 'widget.go')
| -rw-r--r-- | widget.go | 32 |
1 files changed, 0 insertions, 32 deletions
@@ -112,35 +112,3 @@ func (w *guiWidget) SetVisible(b bool) { } w.v.Visible = b } - -func addDropdown() *tree.Node { - n := new(tree.Node) - n.WidgetType = widget.Flag - n.WidgetId = 2222 - n.ParentId = 0 - - // store the internal toolkit information - tk := new(guiWidget) - tk.frame = true - tk.labelN = "DropBox text" - - tk.node = n - // copy the data from the action message - tk.node.State.Label = "DropBox" - - // set the name used by gocui to the id - tk.cuiName = "-1 dropbox" - - tk.color = &colorFlag - - // add this new widget on the binary tree - tk.parent = me.treeRoot.TK.(*guiWidget) - if tk.parent == nil { - panic("addDropdown() didn't get treeRoot guiWidget") - } else { - tk.parent.children = append(tk.parent.children, tk) - } - - n.TK = tk - return n -} |
