diff options
Diffstat (limited to 'gui-example/main.go')
| -rw-r--r-- | gui-example/main.go | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/gui-example/main.go b/gui-example/main.go deleted file mode 100644 index 1ff286d..0000000 --- a/gui-example/main.go +++ /dev/null @@ -1,43 +0,0 @@ -package main - -import ( - "log" - "os" - "time" - - "git.wit.org/wit/gui" -) - -func customExit(gw *gui.GuiWindow) { - log.Println("Should Exit Here") - os.Exit(0) -} - -func main() { - log.Println("starting my Control Panel") - - gui.Config.Width = 800 - gui.Config.Height = 300 - gui.Config.Exit = customExit - - go gui.Main(initGUI) - - watchGUI() -} - -func initGUI() { - gui.NewWindow("jcarr start", 640, 480) -} - -func watchGUI() { - var i = 1 - for { - log.Println("Waiting for customExit()", i) - i += 1 - time.Sleep(time.Second) - if i == 3 { - log.Println("Sending ExampleWindow to gui.Queue()") - gui.Queue(gui.DebugWindow) - } - } -} |
