hoffstadt / hoffstadt/DearPyGui

tooltip of containers stack together

Open
#2,201 3 comments 0 reactions 0 assignees View on GitHub
state: pending type: bug
Dominant language
C++
Stars
15.6k
Forks
783
PR merge metrics
No merged PRs in 30d

Description

Hi, tooltip of containers (collapsing_header/tree_node/group/...) stacked/inherited together, which looks abnormal.
```python
import dearpygui.dearpygui as dpg

dpg.create_context()
primary_w = 'w0'

with dpg.window(tag=primary_w):
with dpg.collapsing_header(label='head1', tag='header1'):
with dpg.tooltip('header1'):
dpg.add_text('header1')

with dpg.tree_node(label='node1', tag='node1'):
with dpg.tooltip('node1'):
dpg.add_text('node1')
dpg.add_button(label='btn1', tag='btn1')
with dpg.tooltip('btn1'):
dpg.add_text('btn1')

with dpg.tree_node(label='node2', tag='node2'):
with dpg.tooltip('node2', tag='t_node2'):
dpg.add_text('node2')
dpg.add_button(label='btn2', tag='btn2')
with dpg.tooltip('btn2'):
dpg.add_text('btn2')

dpg.create_viewport(title='test tooltip', width=600, height=300)
dpg.set_primary_window(primary_w, True)
dpg.setup_dearpygui()
dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.