Skip to content

Commit

Permalink
fix(container_window): remove createWindowContainer
Browse files Browse the repository at this point in the history
Having `createWindowContainer` in `QVTKRenderWindowInteractor` is
causing segfaults. Instead, teach users to add

```python
window_ = QtGui.QWindow.fromWinId(self.plotter.winId())
self.container = self.createWindowContainer(window_, self)
```

to their `MainWindow` class.
  • Loading branch information
adamgranthendry committed Jul 16, 2022
1 parent bebabe5 commit 07eb6fd
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pyvistaqt/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,6 @@ def __init__(
self._first_time = False # Crucial!
LOG.debug("QtInteractor init stop")

window_ = QtGui.QWindow.fromWinId(self.winId())
self.createWindowContainer(window_, self)

def _setup_interactor(self, off_screen: bool) -> None:
if off_screen:
self.iren: Any = None
Expand Down

0 comments on commit 07eb6fd

Please sign in to comment.