summaryrefslogtreecommitdiff
path: root/cmds/buttonplugin/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-12-02 19:02:51 -0600
committerJeff Carr <[email protected]>2023-12-02 19:02:51 -0600
commit7880d9df6de1040258bea966f040e12be6205af1 (patch)
treebb0f3d74eb4e3b5094bfe78e936679efb940cacf /cmds/buttonplugin/main.go
parent19e6ea76f3c09fe3a5d9a4d4caff7d14571f4ba5 (diff)
gocui plugin refactor to a *node binary tree
rename arg '--gui <toolkit>' add a cloudflare example fixes since go v1.21 didn't compile anymore due to argv order more place() changes recursive size computation gocui: Major refactor to use the *node binary tree gocui: refactor place() and size() gocui: better place() and spacing (tab, buttons, etc) gocui: better mouse click handling gocui: switch to using tk.gocuiSize & tk.size gocui: event handling cleanups gocui: add window labels work gocui: struct cleanups gocui: duplicate binary tree structs removed gocui: deprecate old children Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'cmds/buttonplugin/main.go')
-rw-r--r--cmds/buttonplugin/main.go9
1 files changed, 1 insertions, 8 deletions
diff --git a/cmds/buttonplugin/main.go b/cmds/buttonplugin/main.go
index 1fd8b5f..3200e9e 100644
--- a/cmds/buttonplugin/main.go
+++ b/cmds/buttonplugin/main.go
@@ -20,14 +20,7 @@ func main() {
// This will turn on all debugging
// gui.SetDebug(true)
- // myGui = gui.New().LoadToolkit("gocui")
- // myGui = gui.New().LoadToolkit("andlabs")
- // myGui = gui.New().Default()
- if (args.GuiToolkit == nil) {
- myGui = gui.New().Default()
- } else {
- myGui = gui.New().LoadToolkit(args.GuiToolkit[0])
- }
+ myGui = gui.New().Default()
buttonWindow()
// This is just a optional goroutine to watch that things are alive