summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--argv.go2
-rw-r--r--main.go3
2 files changed, 4 insertions, 1 deletions
diff --git a/argv.go b/argv.go
index 75feb6d..6ec3a72 100644
--- a/argv.go
+++ b/argv.go
@@ -4,6 +4,7 @@ import (
"os"
"go.wit.com/dev/alexflint/arg"
+ "go.wit.com/gui"
)
/*
@@ -24,6 +25,7 @@ This basicwindow example demonstrates multiple windows
}
func init() {
+ gui.InitArg()
pp := arg.MustParse(&argv)
// for very new users or users unfamilar with the command line, this may help them
diff --git a/main.go b/main.go
index 492d3db..bbd9c0a 100644
--- a/main.go
+++ b/main.go
@@ -25,7 +25,8 @@ var computers *gui.Node
var colors *gui.Node
func main() {
- myGui = gui.New().Default()
+ myGui = gui.New()
+ myGui.Default()
myGui.LoadToolkit("gocui")
helloworld()