Skip to main content

ListBox Class

Package: GHIElectronics.Endpoint.UI
Namespace: GHIElectronics.Endpoint.UI

Vertical scrollable list. ListBox.AddItem returns a handle whose Clicked event you subscribe to.

class ListBox(Widget): ...

Constructors​

ListBox(Widget parent)​

def __init__(self, parent: Widget):

Create a list box inside parent.

ParameterTypeDescription
parentWidgetContaining widget.

Methods​

AddItem(string text)​

def AddItem(self, text: str) -> ListBoxItem:

Append an item.

ParameterTypeDescription
textstringRow text.

Returns ListBoxItem: Handle for subscribing to the row's ListBoxItem.Clicked event.

Clear()​

def Clear(self) -> None:

Remove every item.