openmc-dev / plotter

Native plotting GUI for model design and verification
MIT License
43 stars 17 forks source link

Scroll wheel method deprecated in Pyside6? #146

Closed MicahGale closed 3 weeks ago

MicahGale commented 3 weeks ago

When I try to use the scroll wheel in plotter I get the following error on stderr:

Traceback (most recent call last):
  File "/home/mgale/mambaforge/lib/python3.10/site-packages/openmc_plotter/plotgui.py", line 342, in wheelEvent
    if event.delta() and event.modifiers() == QtCore.Qt.ShiftModifier:
AttributeError: 'PySide6.QtGui.QWheelEvent' object has no attribute 'delta'

I'm assuming delta was deprecated at some point.

Versions of libraries:

This is a small slice, I figured you didn't want my full pip freeze.

paulromano commented 3 weeks ago

Already fixed in #134 and will be in next release

MicahGale commented 3 weeks ago

Awesome. Sorry for the extra issue.