Skip to content

Commit

Permalink
fix(segmentations): Use a function from the Qt shim instead of direct…
Browse files Browse the repository at this point in the history
… PyQt calls
  • Loading branch information
zjp committed Dec 20, 2024
1 parent 8817181 commit 2bd063d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/bundles/segmentations/src/view/ui.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from chimerax.segmentations.ui.orthoplanes import PlaneViewer, PlaneViewerManager, Axis
import PyQt6.sip
from Qt import qt_delete
from Qt.QtCore import Qt
from Qt.QtWidgets import (
QWidget,
Expand Down Expand Up @@ -94,7 +94,7 @@ def _convert_to_over_under(self):
self._clean_fourup()
elif self._view_layout == "overunder":
self._clean_side_by_side()
PyQt6.sip.delete(self.layout())
qt_delete(self.layout())
self._construct_over_under()
self._view_layout = "overunder"

Expand All @@ -103,13 +103,13 @@ def _convert_to_side_by_side(self):
self._clean_fourup()
elif self._view_layout == "overunder":
self._clean_over_under()
PyQt6.sip.delete(self.layout())
qt_delete(self.layout())
self._construct_side_by_side()
self._view_layout = "sidebyside"

def _convert_to_fourup(self):
self._clean_side_by_side()
PyQt6.sip.delete(self.layout())
qt_delete(self.layout())
self._construct_fourup()
self._view_layout = "fourup"

Expand Down

0 comments on commit 2bd063d

Please sign in to comment.