diff options
| author | Jeff Carr <[email protected]> | 2025-02-02 13:06:30 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-02 15:04:47 -0600 |
| commit | 517d844b3c8257dd796244e6a151deceabedab42 (patch) | |
| tree | 1ebd6b05f55b13a8b716860e4593087d8ed69228 /plugin.go | |
| parent | 4a8fb6ab224e4b4c126f72be77abb1affc85e362 (diff) | |
more work on the ever illusive floating stdout window
Diffstat (limited to 'plugin.go')
| -rw-r--r-- | plugin.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -40,6 +40,7 @@ func newAdd(n *tree.Node) { w.Show() } +// for gocui as a GUI plugin, SetTitle & SetLabel are identical to SetText func newSetTitle(n *tree.Node, s string) { newSetText(n, s) } @@ -48,6 +49,9 @@ func newSetLabel(n *tree.Node, s string) { newSetText(n, s) } +// newSetText() and newAddText() are simple. They take the event sent +// to the GO plugin from the application and lookup the plugin structure +// then pass that event to gocui. This is the transfer point func newSetText(n *tree.Node, s string) { if n == nil { log.Warn("Tree Error: Add() sent n == nil") @@ -180,6 +184,7 @@ func (w *guiWidget) SetText(text string) { } } +/* func (w *guiWidget) Set(val any) { if w == nil { log.Log(WARN, "Set() w == nil. val =", val) @@ -196,3 +201,4 @@ func (w *guiWidget) Set(val any) { w.labelN = widget.GetString(val) } } +*/ |
