api change

This commit is contained in:
Jeff Carr 2025-09-04 15:19:49 -05:00
parent a7e68a70e4
commit c717021028
2 changed files with 4 additions and 1 deletions

View File

@ -4,6 +4,7 @@ import (
"os" "os"
"go.wit.com/dev/alexflint/arg" "go.wit.com/dev/alexflint/arg"
"go.wit.com/gui"
) )
/* /*
@ -24,6 +25,7 @@ This basicwindow example demonstrates multiple windows
} }
func init() { func init() {
gui.InitArg()
pp := arg.MustParse(&argv) pp := arg.MustParse(&argv)
// for very new users or users unfamilar with the command line, this may help them // for very new users or users unfamilar with the command line, this may help them

View File

@ -25,7 +25,8 @@ var computers *gui.Node
var colors *gui.Node var colors *gui.Node
func main() { func main() {
myGui = gui.New().Default() myGui = gui.New()
myGui.Default()
myGui.LoadToolkit("gocui") myGui.LoadToolkit("gocui")
helloworld() helloworld()