add Show() and Hide()

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-01-30 01:37:21 -06:00
parent bc99d221fc
commit 1ac95c7125
2 changed files with 20 additions and 0 deletions

View File

@ -48,6 +48,16 @@ func (d *BasicCombobox) Ready() bool {
return d.ready 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() { func (d *BasicCombobox) Enable() {
if d == nil { if d == nil {
return return

View File

@ -40,6 +40,16 @@ func (n *BasicEntry) Disable() {
n.v.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 { func (n *BasicEntry) String() string {
log.Log(GADGETS, "BasicEntry.String() =", n.v.String()) log.Log(GADGETS, "BasicEntry.String() =", n.v.String())
return n.v.String() return n.v.String()