diff options
| author | Jeff Carr <[email protected]> | 2024-01-26 12:03:03 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-26 12:03:03 -0600 |
| commit | 0bdabc5747163859ddf88e0ea0a4b1712a658bb9 (patch) | |
| tree | cea295709de64ab4cec1cb5e211c19b38a93e57f /choices.go | |
| parent | 386e35a926e42ccf198000ea5e256f217bed8a55 (diff) | |
new gui versionv0.13.0
keep choices in sync
add more tests for entry boxes
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'choices.go')
| -rw-r--r-- | choices.go | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -63,7 +63,16 @@ func newChoices(parent *gui.Node) *choices { c.animal.AddText("honey badger") c.animal.AddText("polar bear") - c.place = gadgets.NewBasicEntry(c.grid, "favorite place") + c.place = gadgets.NewBasicEntry(c.grid, "common favorite place") + c.place.Custom = func () { + log.Info("now set to:", c.place.String()) + if c.place == section1.place { + section2.place.SetText(c.place.String()) + } + if c.place == section2.place { + section1.place.SetText(c.place.String()) + } + } c.place.SetText("coffee shop") return c |
