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
Please give a brief but clear explanation of the issue. If you can, include a complete working example that demonstrates the bug. Check it can run without modifications.
If the tooltip of a widget is set and then the widget is not visible anymore, the tooltip stays there until the mouse is moved
It will be helpful if you run the following command and paste the results:
textual diagnose
Textual Diagnostics
Versions
Name
Value
Textual
0.47.1
Rich
13.7.0
Python
Name
Value
Version
3.11.6
Implementation
CPython
Compiler
GCC 13.2.1 20230801
Executable
/home/kraanzu/Documents/termtyper/venv/bin/python
Operating System
Name
Value
System
Linux
Release
6.6.2-arch1-1
Version
#1 SMP PREEMPT_DYNAMIC Mon, 20 Nov 2023 23:18:21 +0000
Terminal
Name
Value
Terminal Application
WezTerm (20230712-072601-f4abf8fd)
TERM
xterm-256color
COLORTERM
truecolor
FORCE_COLOR
Not set
NO_COLOR
Not set
Rich Console options
Name
Value
size
width=144, height=34
legacy_windows
False
min_width
1
max_width
144
is_terminal
True
encoding
utf-8
max_height
34
justify
None
overflow
None
no_wrap
False
highlight
None
markup
None
height
None
Feel free to add screenshots and / or videos. These can be very helpful!
fromtextualimportonfromtextual.appimportApp, ComposeResultfromtextual.widgetsimportButtonTEXT="I am a tooltip"classTooltipApp(App):
CSS=""" Screen { align: center middle; } """defcompose(self) ->ComposeResult:
yieldButton("Click me", id="button")
defon_mount(self) ->None:
self.query_one(Button).tooltip=TEXT@on(Button.Pressed)deftest(self, event: Button.Pressed):
event.button.styles.visibility="hidden"if__name__=="__main__":
app=TooltipApp()
app.run()
The text was updated successfully, but these errors were encountered:
Yes
If the tooltip of a widget is set and then the widget is not visible anymore, the tooltip stays there until the mouse is moved
Textual Diagnostics
Versions
Python
Operating System
Terminal
Rich Console options
Feel free to add screenshots and / or videos. These can be very helpful!
The text was updated successfully, but these errors were encountered: