diff options
| author | Jeff Carr <[email protected]> | 2023-04-03 10:26:47 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-04-03 10:26:47 -0500 |
| commit | 4b6207743b90968d6b822032a4355e43b6ce6da9 (patch) | |
| tree | 2cb9f13d5e95f14e165f8e41e8484320b7454177 /toolkit/andlabs/image.go | |
| parent | 0320ebe4bb49ea80761d77af80fa208157ffdb89 (diff) | |
gocui: working towards correct layout
make a gocui widget binary tree
more debugging cleanups
sample button app displays in gocui
geometry logic closer to correct
improvements in gocui layout
continued attempts to clean up tabs
dump binary tree
moving towards proper chan callback()
deprecate Widget.Name
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/andlabs/image.go')
| -rw-r--r-- | toolkit/andlabs/image.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/toolkit/andlabs/image.go b/toolkit/andlabs/image.go index a3d1cb6..cb1565c 100644 --- a/toolkit/andlabs/image.go +++ b/toolkit/andlabs/image.go @@ -9,15 +9,14 @@ import ( // make new Image here func newImage(a *toolkit.Action) { - w := a.Widget - log(debugToolkit, "newImage()", w.Name) + log(debugToolkit, "newImage()", a.Name) t := andlabs[a.ParentId] if (t == nil) { - log(debugToolkit, "newImage() toolkit struct == nil. name=", w.Name) + log(debugToolkit, "newImage() toolkit struct == nil. name=", a.Name) listMap(debugToolkit) } - newt := t.rawImage(w.Name) + newt := t.rawImage(a.Name) place(a, t, newt) } @@ -37,7 +36,7 @@ func (t *andlabsT) rawImage(title string) *andlabsT { return &newt } /* - if (w.Name == "image") { + if (a.Name == "image") { log(true, "NewTextbox() trying to add a new image") i := ui.NewImage(16, 16) img, _, err := image.Decode(bytes.NewReader(rawImage)) |
