Skip to content

Commit 34166f1

Browse files
authored
Merge pull request #90 from hsorby/main
Address stricter MRO in Python 3.11 and above.
2 parents fb68cfc + 2d5303c commit 34166f1

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/cmlibs/widgets/basesceneviewerwidget.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ def __init__(self, parent=None):
3838
Call the super class init functions, set the Zinc context and the scene viewer handle to None.
3939
Initialise other attributes that deal with selection and the rotation of the plane.
4040
"""
41-
QtOpenGLWidgets.QOpenGLWidget.__init__(self, parent)
42-
InteractionManager.__init__(self)
41+
super().__init__(parent)
4342
# Create a Zinc context from which all other objects can be derived either directly or indirectly.
4443
self._graphics_initialized = False
4544
self._context = None

src/cmlibs/widgets/handlers/interactionmanager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class InteractionManager:
55
handler_activated = QtCore.Signal()
66
handler_deactivated = QtCore.Signal()
77

8-
def __init__(self):
8+
def __init__(self, *args, **kwargs):
99
self._handlers = {}
1010
self._key_code_handler_map = {}
1111
self._active_handler = None

0 commit comments

Comments
 (0)