diff options
| author | Jeff Carr <[email protected]> | 2024-01-30 01:37:21 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-30 01:37:21 -0600 |
| commit | 1ac95c7125b6f2f196138139b85c82284e5adbd7 (patch) | |
| tree | 48486ad0fac626994a4d1adffa384fd8a4584a10 | |
| parent | bc99d221fcba4b0b528c1a1bcd485894b1b12793 (diff) | |
add Show() and Hide()
Signed-off-by: Jeff Carr <[email protected]>
| -rw-r--r-- | basicCombobox.go | 10 | ||||
| -rw-r--r-- | basicEntry.go | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/basicCombobox.go b/basicCombobox.go index 3b318d9..8377f3f 100644 --- a/basicCombobox.go +++ b/basicCombobox.go @@ -48,6 +48,16 @@ func (d *BasicCombobox) Ready() bool { return d.ready } +func (n *BasicCombobox) Hide() { + n.l.Hide() + n.d.Hide() +} + +func (n *BasicCombobox) Show() { + n.l.Show() + n.d.Show() +} + func (d *BasicCombobox) Enable() { if d == nil { return diff --git a/basicEntry.go b/basicEntry.go index 040a9cb..da39962 100644 --- a/basicEntry.go +++ b/basicEntry.go @@ -40,6 +40,16 @@ func (n *BasicEntry) Disable() { n.v.Disable() } +func (n *BasicEntry) Show() { + n.l.Show() + n.v.Show() +} + +func (n *BasicEntry) Hide() { + n.l.Hide() + n.v.Hide() +} + func (n *BasicEntry) String() string { log.Log(GADGETS, "BasicEntry.String() =", n.v.String()) return n.v.String() |
