diff options
| author | Jeff Carr <[email protected]> | 2021-10-25 05:25:10 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2021-10-25 05:25:10 -0500 |
| commit | cbb777cb3dabee7fd7a9979bf4690a4ebf593666 (patch) | |
| tree | ec63d5e221cc53984cba38f3dcfb35e1a9c4e343 /gui-example/main.go | |
| parent | 4e5c26419d6c411ba04c57cb7b8062e73f695cec (diff) | |
EXAMPLE: correctly add a tab to the example app
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'gui-example/main.go')
| -rw-r--r-- | gui-example/main.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gui-example/main.go b/gui-example/main.go index cba4545..69f3172 100644 --- a/gui-example/main.go +++ b/gui-example/main.go @@ -26,7 +26,8 @@ func main() { } func initGUI() { - gui.NewWindow("jcarr start", 640, 480) + n := gui.NewWindow("jcarr start", 640, 480) + n.AddDemoTab("up the rabbit hole") } func watchGUI() { @@ -35,7 +36,7 @@ func watchGUI() { log.Println("Waiting for customExit()", i) i += 1 time.Sleep(1 * time.Second) - if i == 2 { + if i == 4 { log.Println("Sending ExampleWindow to gui.Queue()") gui.Queue(gui.DebugWindow) } |
