summaryrefslogtreecommitdiff
path: root/demo.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-05-23 16:38:33 -0700
committerJeff Carr <[email protected]>2019-05-23 16:38:33 -0700
commitcdf7ee0962b06812cce2219eb84d81b2426e8e3d (patch)
tree70c1552283b390841a27fff9219b94a51fe9c0fb /demo.go
parent3dca760b3ed7958365158e34e804339767f983d6 (diff)
remove demo examples
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'demo.go')
-rw-r--r--demo.go52
1 files changed, 0 insertions, 52 deletions
diff --git a/demo.go b/demo.go
deleted file mode 100644
index 52bbedc..0000000
--- a/demo.go
+++ /dev/null
@@ -1,52 +0,0 @@
-package gui
-
-import "log"
-
-import "github.com/andlabs/ui"
-import _ "github.com/andlabs/ui/winmanifest"
-
-var demowin *ui.Window
-var demotab *ui.Tab
-
-func SetupDemoUI() {
- log.Println("setupDemoUI() START")
- demowin = ui.NewWindow("Demo GUI Widgets", 500, 300, false)
- demowin.OnClosing(func(*ui.Window) bool {
-// if demowin != nil {
-// demowin.Destroy()
-// }
-// // ui.Quit()
-// demowin = nil
- return true
- })
- ui.OnShouldQuit(func() bool {
- demowin.Destroy()
- demowin = nil
- return true
- })
-
- demotab = ui.NewTab()
- demowin.SetChild(demotab)
- demowin.SetMargined(true)
-
- demotab.Append("List examples", makeNumbersPage())
- tabcount := 0
- demotab.SetMargined(tabcount, true)
-
- demotab.Append("Choosers examples", makeDataChoosersPage())
- tabcount += 1
- demotab.SetMargined(tabcount, true)
-
- demotab.Append("Group examples", makeGroupEntries())
- tabcount += 1
- demotab.SetMargined(tabcount, true)
-
- demowin.Show()
-}
-
-func CloseDemoUI() {
- if demowin != nil {
- demowin.Destroy()
- }
- demowin = nil
-}