better names

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-01-19 02:58:45 -06:00
parent f5fe9f80ba
commit 0049cb43a7
1 changed files with 6 additions and 6 deletions

View File

@ -19,7 +19,7 @@ func simpleStdin() {
log.Println("Recovered from panic:", r)
log.Println("Stack trace:")
debug.PrintStack()
me.myTree.DoToolkitPanic()
me.myTree.SendToolkitPanic()
return
}
}()
@ -35,11 +35,11 @@ func simpleStdin() {
log.Log(NOW, "show buttons")
me.treeRoot.ShowButtons()
case "g":
me.myTree.DoToolkitLoad("gocui")
me.myTree.SendToolkitLoad("gocui")
case "a":
me.myTree.DoToolkitLoad("andlabs")
me.myTree.SendToolkitLoad("andlabs")
case "d":
me.myTree.DoEnableDebugger()
me.myTree.SendEnableDebugger()
case "":
fmt.Println("")
fmt.Println("Enter:")
@ -63,9 +63,9 @@ func simpleStdin() {
case widget.Dropdown:
log.Warn("print out dropdown values here")
case widget.Button:
me.myTree.DoUserEvent(n)
me.myTree.SendUserEvent(n)
case widget.Checkbox:
me.myTree.DoUserEvent(n)
me.myTree.SendUserEvent(n)
default:
log.Warn("you haven't defined an event for", n.WidgetType)
}