hoffstadt / hoffstadt/DearPyGui
If dpg.configure_app(wait_for_input=True) then tooltips with delay won't show after delay time passed, only if we click on the item
- Dominant language
- C++
- Stars
- 15.6k
- Forks
- 783
- PR merge metrics
- No merged PRs in 30d
Description
## Version of Dear PyGui
Version: dearpygui-2.0.0, 1.1.1
Operating System: Windows 11, Windows 10
## My Issue/Question
If:
dpg.configure_app(wait_for_input=True)
then:
Tooltip with delay doesn't open after delay time passed, only if we click on the item
If we hit Ctrl while the mouse is hovering, that also updates and shows the tooltip
## Expected behavior
While this behavior is understandable, since there is no actual input, after the delay the tooltip should show if the mouse moves, not only if we provide some other input.
So in short, **the mouse movement should count as input**.
## Standalone, minimal, complete and verifiable example
```python
import dearpygui.dearpygui as dpg
dpg.create_context()
# Based on wait_for_input setting the tooltip with delay is shown or not automatically
# It's only shown if we click on the element after the delay while wait_for_input=True
# If wait_for_input=False, then the tooltip is working fine
dpg.configure_app(wait_for_input=True)
dpg.create_viewport(
title="Title",
)
dpg.setup_dearpygui()
dpg.show_viewport()
dpg.render_dearpygui_frame()
with dpg.window(no_title_bar=True, tag="Main Window") as main_window:
dpg.add_input_text( tag="A")
with dpg.tooltip("A", delay=0.5):
dpg.add_text(f"Tooltip text")
dpg.set_primary_window("Main Window", True)
while dpg.is_dearpygui_running():
dpg.render_dearpygui_frame()
dpg.destroy_context()
# High level idea for fix (without understanding of the underlying code):
# the mouse move/mouse hover event should also trigger the same update path that a click/keyboard input does
# Workaround: remove the delay, that way the tooltip is shown immediately
```
Contributor guide
Assessment
This issue has not been assessed yet.