summaryrefslogtreecommitdiff
path: root/infoTabUI.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 /infoTabUI.go
parent3dca760b3ed7958365158e34e804339767f983d6 (diff)
remove demo examples
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'infoTabUI.go')
-rw-r--r--infoTabUI.go34
1 files changed, 2 insertions, 32 deletions
diff --git a/infoTabUI.go b/infoTabUI.go
index c8f7b6f..a952607 100644
--- a/infoTabUI.go
+++ b/infoTabUI.go
@@ -3,8 +3,6 @@ package gui
import "log"
import "time"
import "fmt"
-import "runtime/debug"
-import "runtime"
import "github.com/gookit/config"
@@ -233,11 +231,7 @@ func addDebuggingButtons(vbox *ui.Box, custom func(int, string)) {
*/
vbox.Append(add4button, false)
- add4abutton := ui.NewButton("Close Demo GUI")
- add4abutton.OnClicked(func(*ui.Button) {
- CloseDemoUI()
- })
- vbox.Append(add4abutton, false)
+ vbox.Append(CreateButton("Close GUI", "QUIT", custom), false)
// Send a protobuf Event over the WIT socket
add5button := CreateButton("Send protobuf to localhost", "SEND PROTOBUF TO LOCALHOST", custom)
@@ -250,29 +244,5 @@ func addDebuggingButtons(vbox *ui.Box, custom func(int, string)) {
*/
vbox.Append(add5button, false)
- // Send a protobuf over a gorilla websocket
- add6button := CreateButton("gorillaSendProtobuf()", "SEND PROTOBUF TO GORILLA SOCKET", custom)
-/*
- add6button := ui.NewButton("gorillaSendProtobuf()")
- add6button.OnClicked(func(*ui.Button) {
- log.Println("gorillaSendProtobuf()")
- gorillaSendProtobuf()
- })
-*/
- vbox.Append(add6button, false)
-
- // debug all the golang goroutines
- add7button := ui.NewButton("debug.PrintStack()")
- add7button.OnClicked(func(*ui.Button) {
- log.Println("debug.PrintStack() (SHOULD BE JUST THIS goroutine)")
- debug.PrintStack()
-
- log.Println("ATTEMPT FULL STACK DUMP")
- log.Println("ATTEMPT FULL STACK DUMP")
- log.Println("ATTEMPT FULL STACK DUMP")
- buf := make([]byte, 1<<16)
- runtime.Stack(buf, true)
- fmt.Printf("%s", buf)
- })
- vbox.Append(add7button, false)
+ vbox.Append(CreateButton("DEBUG goroutines", "DEBUG", custom), false)
}