summaryrefslogtreecommitdiff
path: root/cmds/gui-demo/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2022-10-17 22:39:03 -0500
committerJeff Carr <[email protected]>2022-10-17 22:39:03 -0500
commit15baefd9a7d145ddffced80d0fb6c14f258bdcc9 (patch)
tree633838faafa5c545635e77d441455bc8eb47958f /cmds/gui-demo/main.go
parent7e32b1fb9a44624ce2d4a8bc5c6acd5fafc820f3 (diff)
GROUP: implement 'group' in toolkit/
move gui.group into toolkit remove duplicate code update demo
Diffstat (limited to 'cmds/gui-demo/main.go')
-rw-r--r--cmds/gui-demo/main.go14
1 files changed, 1 insertions, 13 deletions
diff --git a/cmds/gui-demo/main.go b/cmds/gui-demo/main.go
index 8eae878..0084e3a 100644
--- a/cmds/gui-demo/main.go
+++ b/cmds/gui-demo/main.go
@@ -22,19 +22,7 @@ func main() {
// This initializes the first window
func initGUI() {
- gui.Config.Title = "WIT GUI Window Demo 1"
- gui.Config.Width = 640
- gui.Config.Height = 480
- gui.Config.Exit = myExit
- node1 := gui.NewWindow()
- addDemoTab(node1, "A Simple 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.DemoAndlabsUiTab("A Simple andlabs/ui Tab Demo")
+ gui.ToolkitDemoWindow()
}
// This demonstrates how to properly interact with the GUI