Instead, I am getting the following error in the console:
Traceback (most recent call last): File "/Users/xxx/miniforge3/envs/openmc-env/lib/python3.11/site-packages/openmc_plotter/plotmodel.py", line 1302, in editorEvent if not int(index.flags() & Qt.ItemIsEditable) > 0: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: int() argument must be a string, a bytes-like object or a real number, not 'ItemFlag'
I found that changing line 1302 to:
if not (index.flags() & Qt.ItemIsEditable).value > 0:
helped.
I am also triggering this other error:
Traceback (most recent call last): File "/Users/xxx/miniforge3/envs/openmc-env/lib/python3.11/site-packages/openmc_plotter/plotmodel.py", line 1291, in setEditorData color = index.data(Qt.BackgroundColorRole) ^^^^^^^^^^^^^^^^^^^^^^ AttributeError: type object 'PySide6.QtCore.Qt' has no attribute 'BackgroundColorRole'
In that case, I had to change every occurence of Qt.BackgroundColorRole to Qt.BackgroundRole.
I am using python 3.11.9 and pyside6 version 6.7.0.
Instead, I am getting the following error in the console:
Traceback (most recent call last): File "/Users/xxx/miniforge3/envs/openmc-env/lib/python3.11/site-packages/openmc_plotter/plotmodel.py", line 1302, in editorEvent if not int(index.flags() & Qt.ItemIsEditable) > 0: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: int() argument must be a string, a bytes-like object or a real number, not 'ItemFlag'
I found that changing line 1302 to:
if not (index.flags() & Qt.ItemIsEditable).value > 0:
helped.I am also triggering this other error:
Traceback (most recent call last): File "/Users/xxx/miniforge3/envs/openmc-env/lib/python3.11/site-packages/openmc_plotter/plotmodel.py", line 1291, in setEditorData color = index.data(Qt.BackgroundColorRole) ^^^^^^^^^^^^^^^^^^^^^^ AttributeError: type object 'PySide6.QtCore.Qt' has no attribute 'BackgroundColorRole'
In that case, I had to change every occurence ofQt.BackgroundColorRole
toQt.BackgroundRole
.I am using python 3.11.9 and pyside6 version 6.7.0.
Thank you for making this software!