summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2021-10-31 14:21:36 -0500
committerJeff Carr <[email protected]>2021-10-31 14:21:36 -0500
commit213c7d153b06d3e1211d1cdeae1e4f7833cb89f7 (patch)
tree53b489c9df4ea1784be0d626df1497b04183c9be /main.go
parent36e2c6d2e3c266f32325985e98c3776755fdd511 (diff)
REFACTOR: refactor everything to gui.Node structv0.2
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
-rw-r--r--main.go28
1 files changed, 6 insertions, 22 deletions
diff --git a/main.go b/main.go
index 09d105f..70e0e65 100644
--- a/main.go
+++ b/main.go
@@ -12,7 +12,7 @@ func Main(f func()) {
ui.Main(f)
}
-// Other goroutines must use this
+// Other goroutines must use this to access the GUI
//
// You can not acess / process the GUI thread directly from
// other goroutines. This is due to the nature of how
@@ -23,28 +23,12 @@ func Queue(f func()) {
ui.QueueMain(f)
}
+/*
func ExampleWindow() {
log.Println("START gui.ExampleWindow()")
- title := "Test Window"
- box := InitWindow(nil, title, 0)
- window := box.Window
- log.Println("box =", box)
- log.Println("window =", window)
- box.AddDebugTab("jcarr Debug")
-
- window.UiWindow.Show()
-}
-
-func DebugWindow() {
- log.Println("START gui.ExampleWindow()")
-
- title := "Debug Window"
- box := InitWindow(nil, title, 0)
- window := box.Window
- log.Println("box =", box)
- log.Println("window =", window)
- box.AddDebugTab("jcarr Debug")
-
- window.UiWindow.Show()
+ Config.Title = "ExampleWindow"
+ node := NewWindow()
+ node.AddDebugTab("jcarr Debug")
}
+*/