ButtonItem¶
- class pyto_ui.ButtonItem(title: str = None, image: Image = None, system_item: SystemItem = None, style: ButtonItemStyle = PLAIN)¶
A special kind of button that can be placed on the view’s navigation bar. Can have a title, and image or a system type.
- property action: callable¶
A function called when the button item is pressed. Takes the button item as parameter.
- Return type:
callable
- property enabled: bool¶
A boolean indicating whether the button is enabled.
- Return type:
bool
- property image: Image¶
A
PILimage object displayed on screen. May also be anUIKitUIImagesymbol. Seeimage_with_system_name().- Return type:
PIL.Image.Image
- property style: ButtonItemStyle¶
The button item style. See
Button Item Styleconstants for possible values.- Return type:
Button Item Style
- property title: str¶
The title of the button displayed on screen.
- Return type:
str