summaryrefslogtreecommitdiff
path: root/setText.go
diff options
context:
space:
mode:
Diffstat (limited to 'setText.go')
-rw-r--r--setText.go16
1 files changed, 7 insertions, 9 deletions
diff --git a/setText.go b/setText.go
index cf51575..2724b62 100644
--- a/setText.go
+++ b/setText.go
@@ -11,17 +11,15 @@ func setText(n *tree.Node, name string) {
var tk *guiWidget
tk = n.TK.(*guiWidget)
- log.Info("setText() START with text =", name, n.WidgetType)
- log.Log(CHANGE, "setText() START with text =", name)
+ log.Log(ANDLABS, "setText() START with text =", name, n.WidgetType)
if tk == nil {
log.Log(ERROR, "setText error. tk == nil", n.GetProgName(), n.WidgetId)
return
}
- log.Log(CHANGE, "setText() Attempt on", n.WidgetType, "with", name)
switch n.WidgetType {
case widget.Window:
- log.Log(CHANGE, "setText() Attempt to set the title to", name)
+ log.Log(ANDLABS, "setText() Attempt to set the title to", name)
tk.uiWindow.SetTitle(name)
case widget.Tab:
case widget.Group:
@@ -29,7 +27,7 @@ func setText(n *tree.Node, name string) {
case widget.Checkbox:
tk.uiCheckbox.SetText(name)
case widget.Textbox:
- log.Info("setText() on Textbox START with text =", name)
+ log.Log(ANDLABS, "setText() on Textbox START with text =", name)
if tk.uiEntry != nil {
tk.uiEntry.SetText(name)
}
@@ -49,13 +47,13 @@ func setText(n *tree.Node, name string) {
var i int = -1
var s string
orig = tk.uiCombobox.Selected()
- log.Log(CHANGE, "try to set the Dropdown to", name, "from", orig)
+ log.Log(ANDLABS, "try to set the Dropdown to", name, "from", orig)
// try to find the string
for i, s = range tk.val {
- log.Log(CHANGE, "i, s", i, s)
+ log.Log(ANDLABS, "i, s", i, s)
if name == s {
tk.uiCombobox.SetSelected(i)
- log.Log(CHANGE, "setText() Dropdown worked.", name)
+ log.Log(ANDLABS, "setText() Dropdown worked.", name)
return
}
}
@@ -73,5 +71,5 @@ func setText(n *tree.Node, name string) {
default:
log.Log(ERROR, "plugin Send() Don't know how to setText on", n.WidgetType, "yet")
}
- log.Log(CHANGE, "setText() END with name =")
+ log.Log(ANDLABS, "setText() END with name =")
}