DearPyGui
DearPyGui copied to clipboard
Popup mvMouseButton_Left is not triggering
Version of Dear PyGui
Version: 1.6.2 Operating System: macOs 12.5 and Fedora 36
My Issue/Question
Both on my Mac and Linux machines when I assign the left mouse button to trigger the popup it doesn't show the popup. Both middle and right buttons work just fine.
Expected behavior
When left clicking on the widget that has the popup attached, it should open the popup window when the defined mouse click is received.
Standalone, minimal, complete and verifiable example
import dearpygui.dearpygui as dpg
dpg.create_context()
dpg.create_viewport(title="Window", width=1200, height=600)
with dpg.window(tag="Primary"):
dpg.add_text("test")
with dpg.popup(parent=dpg.last_item(), modal=False, mousebutton=dpg.mvMouseButton_Left):
dpg.add_text("this doesn't show up")
dpg.set_primary_window("Primary", True)
dpg.setup_dearpygui()
dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()
Can verify that on Windows
I can verify that too. You may try to replace dpg.add_text("test")
with dpg.add_button(label="test")
. It works for me on Windows 11.
Hey @sedenka,
Thanks, I'm currently sticking with right click as it is text in a table so I prefer it to look like plain text.