DearPyGui icon indicating copy to clipboard operation
DearPyGui copied to clipboard

Popup mvMouseButton_Left is not triggering

Open Methamane opened this issue 2 years ago • 3 comments

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()

Methamane avatar Jul 29 '22 02:07 Methamane

Can verify that on Windows

Mstpyt avatar Jul 29 '22 17:07 Mstpyt

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.

sedenka avatar Aug 01 '22 01:08 sedenka

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.

Methamane avatar Aug 15 '22 02:08 Methamane