We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Version: 1.3.1 Operating System: Arch Linux
dpg.get_value on list box returns an item that was in the meantime delete if it was selected before deletion.
Steps to reproduce the behavior:
Even though GUI selects A (default behaivor of listbox that selects first element) get_value doesn't return it.
# Here's some code anyone can copy and paste to reproduce your issue import dearpygui.dearpygui as dpg dpg.create_context() dpg.create_viewport() dpg.setup_dearpygui() def populate_the_list(sender, data): if data: dpg.configure_item("list", items=["A", "B", "C"]) print(dpg.get_value("list") else: dpg.configure_item("list", items=["A", "B"]) print(dpg.get_value("list")) with dpg.window(label="tutorial"): dpg.add_listbox(tag="list", callback=populate_the_list) dpg.add_checkbox(callback=populate_the_list) dpg.show_viewport() dpg.start_dearpygui() dpg.destroy_context()
The text was updated successfully, but these errors were encountered:
fix: get_value returning deleted value option for listbox #1640
dd79937
Fixed in next release.
Sorry, something went wrong.
No branches or pull requests
Version of Dear PyGui
Version: 1.3.1
Operating System: Arch Linux
My Issue/Question
dpg.get_value on list box returns an item that was in the meantime delete if it was selected before deletion.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Even though GUI selects A (default behaivor of listbox that selects first element) get_value doesn't return it.
Standalone, minimal, complete and verifiable example
The text was updated successfully, but these errors were encountered: