Skip to content

TabBarHoverEvent

Inherits: Event['TabBar']

Represents a hover-state change for a tab in a TabBar.

This event is emitted by TabBar.on_hover when a pointer enters or exits a tab item. When moving directly from one tab to another, the handler is typically called twice: first with hovering set to False for the previous tab, then with hovering set to True for the next tab.

Properties

  • hovering(bool) –

    Whether a pointer has entered (True) or exited (False) the tab bar at index.

  • index(int) –

    The index of the tab that is being hovered over.

Properties#

hovering instance-attribute #

hovering: bool

Whether a pointer has entered (True) or exited (False) the tab bar at index.

index instance-attribute #

index: int

The index of the tab that is being hovered over.