debian/nocui/main.go

25 lines
401 B
Go
Raw Normal View History

2024-01-01 16:11:54 -06:00
package main
/*
This is reference code for toolkit developers
2024-01-01 16:11:54 -06:00
The 'nocui' is a bare minimum toolkit. It's all you need
to interact with the GUI
2024-01-01 16:11:54 -06:00
*/
import (
"go.wit.com/log"
"go.wit.com/gui/toolkits/tree"
)
2024-01-01 16:11:54 -06:00
func init() {
log.Log(INFO, "Init()")
2024-01-01 16:11:54 -06:00
me.myTree = tree.New()
me.myTree.PluginName = "nocui"
me.myTree.ActionFromChannel = doAction
2024-01-01 16:11:54 -06:00
go simpleStdin()
log.Log(INFO, "Init() END")
2024-01-01 16:11:54 -06:00
}