hoffstadt / hoffstadt/DearPyGui

dpg.move_item does not work on tooltip

Open
#2,510 2 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

## Version of Dear PyGui

Version: 1.11
Operating System: Windows 11

## My Issue/Question
In short: `dpg.move_item` doesn't work on tooltip
A bit more discussion here on discord for reference.
https://discordapp.com/channels/736279277242417272/876200434468016178/1365250599578505317

## To Reproduce
Short reproducer, thanks to @v-ein
```python
import dearpygui.dearpygui as dpg

dpg.create_context()
dpg.create_viewport(title=f"Test - {dpg.get_dearpygui_version()}, {dpg.__file__}", width=800, height=800)

with dpg.window():
dpg.set_primary_window(dpg.last_item(), True)
dpg.add_text("Tooltip Parent")
with dpg.tooltip(parent=dpg.last_item()) as tooltip:
dpg.add_text("Tooltip")
dpg.add_button(label="Move it!", tag="btn", callback=lambda: dpg.move_item(tooltip, parent="btn"))

dpg.setup_dearpygui()
dpg.show_viewport()
dpg.show_item_registry()
dpg.start_dearpygui()
dpg.destroy_context()
```

## Expected behavior
It should move the tooltip from one parent to another, but instead the tooltip just disappears.

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.