hoffstadt / hoffstadt/DearPyGui

Popup mvMouseButton_Left is not triggering

Open
#1,850 3 comments 0 reactions 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.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

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

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.