diff options
| author | Jeff Carr <[email protected]> | 2021-10-27 16:31:54 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2021-10-27 16:31:54 -0500 |
| commit | 81c44bce5313d4415a0fa062ececc4547832d66d (patch) | |
| tree | 050d019f1f80587d9112a1a7d18e6994707fd7dc /gui-example/main.go | |
| parent | 10e13423db08e282a1f41c2f38f348d630cfca96 (diff) | |
REFACTOR: moving around things in the rabbit hole
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'gui-example/main.go')
| -rw-r--r-- | gui-example/main.go | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/gui-example/main.go b/gui-example/main.go index 2b8cc39..9fcb971 100644 --- a/gui-example/main.go +++ b/gui-example/main.go @@ -22,14 +22,19 @@ func main() { // This initializes the first window func initGUI() { - gui.Config.Title = "WIT GUI Window Demo" + gui.Config.Title = "WIT GUI Window Demo 1" gui.Config.Width = 640 gui.Config.Height = 480 gui.Config.Exit = myExit + node1 := gui.NewWindow() + node1.AddDemoTab("A Simple Tab Demo") - node := gui.NewWindow() - node.AddDemoTab("A Simple Tab Demo") - node.AddDemoAndlabsUiTab("A Simple andlabs/ui Tab Demo") + gui.Config.Title = "WIT GUI Window Demo 2" + gui.Config.Width = 640 + gui.Config.Height = 240 + gui.Config.Exit = myExit + node2 := gui.NewWindow() + node2.AddDemoAndlabsUiTab("A Simple andlabs/ui Tab Demo") } // This demonstrates how to properly interact with the GUI |
