diff options
| author | Jeff Carr <[email protected]> | 2022-11-06 19:57:20 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2022-11-06 19:57:20 -0600 |
| commit | b410d0fd083ee89eed410cda2123a22cddcd3f44 (patch) | |
| tree | 3f1a637003629a3ec7d383b5db6beb0df9e5a97c /toolkit/andlabs/common.go | |
| parent | e55fb6675d692e3f44fa67b02b12661e476bd028 (diff) | |
Implement a early AddButton() via a golang pluginv0.4.5
pass a name to gocui.AddButton()
cleaner plugin usage
add the start to golang plugin
plugin stuff in a single file
added a button correctly
andlabs/ui added a button via plugin to gocli
hot diggity!
trying to invoke a gocli plugin function from the andlabs ui
load the plugin
hide more debugging output
turn off all output
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/andlabs/common.go')
| -rw-r--r-- | toolkit/andlabs/common.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/toolkit/andlabs/common.go b/toolkit/andlabs/common.go index e997aca..451f9d6 100644 --- a/toolkit/andlabs/common.go +++ b/toolkit/andlabs/common.go @@ -3,7 +3,9 @@ package toolkit import "log" func init() { - log.Println("gui/toolkit init() Setting defaultBehavior = true") + if (DebugToolkit) { + log.Println("gui/toolkit init() Setting defaultBehavior = true") + } setDefaultBehavior(true) } @@ -37,7 +39,9 @@ func (t Toolkit) commonChange(widget string) { func (t *Toolkit) broken() bool { if (t.uiBox == nil) { if (t.uiWindow != nil) { - log.Println("gui.Toolkit.UiBox == nil. This is an empty window. Try to add a box") + if (DebugToolkit) { + log.Println("gui.Toolkit.UiBox == nil. This is an empty window. Try to add a box") + } t.NewBox() return false } |
