diff options
Diffstat (limited to 'cmds/plugin-consoleonly/main.go')
| -rw-r--r-- | cmds/plugin-consoleonly/main.go | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/cmds/plugin-consoleonly/main.go b/cmds/plugin-consoleonly/main.go deleted file mode 100644 index fa428d6..0000000 --- a/cmds/plugin-consoleonly/main.go +++ /dev/null @@ -1,33 +0,0 @@ -// This is a simple example -package main - -import ( - "log" - "git.wit.org/wit/gui" -) - -func main() { - gui.InitPlugins([]string{"gocui"}) - gui.Main(helloworld) -} - -// This creates a window -func helloworld() { - var w *gui.Node - gui.Config.Title = "helloworld golang wit/gui window" - gui.Config.Width = 640 - gui.Config.Height = 480 - - w = gui.NewWindow() - w.NewButton("hello", func () { - log.Println("world") - }) - w.NewButton("Flags", func () { - log.Println("the debugging flags window") - w.DebugFlags(false) - }) - w.NewButton("Widgets", func () { - w.DebugWidgets(false) - log.Println("debug the widgets window") - }) -} |
