parent
f5fe9f80ba
commit
0049cb43a7
12
stdin.go
12
stdin.go
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue