diff options
| author | Jeff Carr <[email protected]> | 2022-11-06 12:59:24 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2022-11-06 12:59:24 -0600 |
| commit | e55fb6675d692e3f44fa67b02b12661e476bd028 (patch) | |
| tree | c16084dea9779f5ef244adb3937d33adb17e7bad /toolkit/andlabs/box.go | |
| parent | 099efb6b24caf9eaad50d7386636a7ac23552bde (diff) | |
start trying to make the tookits pluginsv0.4.3
totally minimize helloworld demo
try to make a button plugin example
debug changes
final changes before attempting to use a golang plugin
actually running gocui as a plugin
add gocli-as-plugin example
try to convert the go-cui toolkit into a plugin
doc updates
make a minimal console gui
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/andlabs/box.go')
| -rw-r--r-- | toolkit/andlabs/box.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/toolkit/andlabs/box.go b/toolkit/andlabs/box.go index ac31f0d..8347bab 100644 --- a/toolkit/andlabs/box.go +++ b/toolkit/andlabs/box.go @@ -37,6 +37,19 @@ func (t *Toolkit) NewBox() *Toolkit { return &newTK } + if (t.uiWindow != nil) { + log.Println("\tgui.Toolbox.NewBox() is a Window") + var newT Toolkit + + vbox := ui.NewVerticalBox() + vbox.SetPadded(padded) + t.uiWindow.SetChild(vbox) + newT.uiBox = vbox + newT.Name = t.Name + + // panic("WTF") + return &newT + } log.Println("\tgui.Toolbox.NewBox() FAILED. Couldn't figure out where to make a box") t.Dump() return nil |
