主题
TabBarHoverEvent 继承自: Event['TabBar']
表示 TabBar 中某个选项卡的悬停状态变化。
当指针进入或离开某个选项卡时,on_hover 会触发此事件。当指针直接在选项卡之间移动时,事件处理器通常会被调用两次:第一次将上一个选项卡的 hovering 设为 False, 然后将下一个选项卡的 hovering 设为 True。
属性
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
hovering | bool | required | Whether a pointer has entered (True) or exited (False) the tab bar at index. |
index | int | required | The index of the tab that is being hovered over. |