Deleting a popup does not delete its item handler registry.
To Reproduce
Steps to reproduce the behavior:
Create a popup
Delete popup
Open the Item Registry window and expand Item Handler Registries
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
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()
def handle_menu(sender):
main_page = [24]
res = [x for x in main_page + dpg.get_windows() if x not in main_page or x not in dpg.get_windows()]
for i in res:
dpg.delete_item(i)
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:
Expected behavior
The item handler should be deleted when the popup is deleted.
Screenshots/Video
Standalone, minimal, complete and verifiable example