PASTA-ELN / pasta-eln

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

Right click in project view #319

Open HTsybenko opened 1 month ago

HTsybenko commented 1 month 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 1 month ago

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

HTsybenko commented 1 month ago

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