You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by snowbollaanm November 2, 2023
Hi I have encountered an issue with tooltips and tabs.
I have made a button that when pressed switches to the next tab panel. However, I gave that button a tooltip and discovered a bug that when the tab changes and you leave your cursor in the position of the button for about half a second the tooltip becomes persistent and no longer goes away until you put your cursor back over the button on the original tab.
fromniceguiimportuidefswitchTab():
tabs= [tabOne, tabTwo]
currentTab=testTabPanels.valueifcurrentTabintabs:
changeTab=1-tabs.index(currentTab)
testTabPanels.set_value(tabs[changeTab])
withui.tabs() astestTabs:
tabOne=ui.tab(1)
tabTwo=ui.tab(2)
withui.tab_panels(testTabs, value=tabOne) astestTabPanels:
withui.tab_panel(tabOne):
ui.label('Tab One')
withui.button('switch tab', on_click=lambda: switchTab()):
ui.tooltip('This is a tooltip').classes('text-body2')
withui.tab_panel(tabTwo):
ui.label('Tab Two')
ui.button('This button has NO tooltip', on_click=lambda: switchTab())
ui.run()
The text was updated successfully, but these errors were encountered:
Discussed in #1942
Originally posted by snowbollaanm November 2, 2023
Hi I have encountered an issue with tooltips and tabs.
I have made a button that when pressed switches to the next tab panel. However, I gave that button a tooltip and discovered a bug that when the tab changes and you leave your cursor in the position of the button for about half a second the tooltip becomes persistent and no longer goes away until you put your cursor back over the button on the original tab.
The text was updated successfully, but these errors were encountered: