hoffstadt / hoffstadt/DearPyGui

Deleting a popup does not delete its item handler registry

Open
#1,969 1 comment 1 reaction 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.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
![image](https://user-images.githubusercontent.com/52385967/205750982-ca475b4b-b8ac-4288-87ba-2faf1a8b98f6.png)

## 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

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.