PASTA-ELN / pasta-eln

PASTA-ELN with new frontend
https://pasta-eln.github.io/pasta-eln/
Other
8 stars 2 forks source link

Right click in project view #319

Closed HTsybenko closed 2 months ago

HTsybenko commented 4 months ago

1) Open any project in a project view 2) Right click on any item or empty area

Traceback (most recent call last): File "/home/htsybenko/pasta_3_11/lib/python3.11/site-packages/pasta_eln/GUI/projectTreeView.py", line 55, in contextMenuEvent context.exec(p.globalPosition().toPoint()) ^^^^^^^^^^^^^^^^ AttributeError: 'PySide6.QtGui.QContextMenuEvent' object has no attribute 'globalPosition'

Expected behavior: No error messages, right click opens a context menu with options.

SteffenBrinckmann commented 4 months ago

@HTsybenko can you also specify the pyside6 version? Can you try with python 3.12, too?

HTsybenko commented 4 months ago

@SteffenBrinckmann Same with python 3.12, both have pyside6-6.7.2.