debian/andlabs/addText.go

28 lines
648 B
Go
Raw Normal View History

package main
import (
"go.wit.com/log"
"go.wit.com/gui/widget"
)
func (n *node) addText(a *widget.Action) {
log.Log(CHANGE, "addText() START with a.S =", a.S)
t := n.tk
if (t == nil) {
log.Log(ERROR, "addText error. tk == nil", n.Name, n.WidgetId)
actionDump(debugError, a)
return
}
log.Log(CHANGE, "addText() Attempt on", n.WidgetType, "with", a.S)
switch n.WidgetType {
case widget.Dropdown:
n.AddDropdownName(a.S)
case widget.Combobox:
t.AddComboboxName(a.S)
default:
log.Log(ERROR, "plugin Send() Don't know how to addText on", n.WidgetType, "yet", a.ActionType)
}
log.Log(CHANGE, "addText() END with a.S =", a.S)
}