Skip to main content

TabBarHoverEvent

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

This event is emitted by flet.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.

Inherits: Event

Properties

  • hovering - Whether a pointer has entered (True) or exited (False) the tab bar at index.
  • index - The index of the tab that is being hovered over.

Properties

hoveringinstance-attribute

hovering: bool

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

indexinstance-attribute

index: int

The index of the tab that is being hovered over.