hoffstadt / hoffstadt/DearPyGui
Deleting a popup does not delete its item handler registry
- Dominant language
- C++
- Stars
- 15.6k
- Forks
- 783
- PR merge metrics
- No merged PRs in 30d
Description
## Version of Dear PyGui
Version: 1.8.0
Operating System: Windows 10
## My Issue/Question
Deleting a popup does not delete its item handler registry.
## To Reproduce
Steps to reproduce the behavior:
1. Create a popup
2. Delete popup
3. Open the Item Registry window and expand Item Handler Registries
4. Popup's item handler registry will be shown
## Expected behavior
The item handler should be deleted when the popup is deleted.
## Screenshots/Video

## Standalone, minimal, complete and verifiable example
```python
import dearpygui.dearpygui as dpg
dpg.create_context()
with dpg.window(tag="window"):
group = dpg.add_group()
with dpg.popup(group, tag="popup") as popup:
pass
dpg.delete_item(popup)
dpg.create_viewport()
dpg.setup_dearpygui()
dpg.show_viewport()
dpg.show_item_registry()
dpg.start_dearpygui()
dpg.destroy_context()
```
Contributor guide
Assessment
This issue has not been assessed yet.