openmc-dev / plotter

Native plotting GUI for model design and verification
MIT License
48 stars 18 forks source link

Scroll wheel method deprecated in Pyside6? #146

Closed MicahGale closed 5 months ago

MicahGale commented 5 months 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 5 months ago

Already fixed in #134 and will be in next release

MicahGale commented 5 months ago

Awesome. Sorry for the extra issue.