summaryrefslogtreecommitdiff
path: root/cmds/buttonplugin/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-04-04 10:38:21 -0500
committerJeff Carr <[email protected]>2023-04-04 10:38:21 -0500
commit8429f76b551ebeb04277f0ae6e5fa68e8f173364 (patch)
treea0dd4255edac7bead6048f59c392561197fa535e /cmds/buttonplugin/main.go
parentd6b1fa497dcb21e194348d321bfc25f6b128438f (diff)
gocui: grid resize
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'cmds/buttonplugin/main.go')
-rw-r--r--cmds/buttonplugin/main.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/cmds/buttonplugin/main.go b/cmds/buttonplugin/main.go
index d1b0489..aca8707 100644
--- a/cmds/buttonplugin/main.go
+++ b/cmds/buttonplugin/main.go
@@ -104,6 +104,15 @@ func buttonWindow() {
})
})
+ g.NewButton("NewButton(more2 d)", func () {
+ log.Println("new foobar 2. Adding button 'foobar 3'")
+ name := "d" + strconv.Itoa(counter)
+ counter += 1
+ more2.NewButton(name, func () {
+ log.Println("Got all the way to main() name =", name)
+ })
+ })
+
g.NewButton("NewGroup()", func () {
log.Println("new foobar 2. Adding button 'foobar 3'")
name := "neat " + strconv.Itoa(counter)