Closed JaRoSchm closed 1 year ago
Is there some idea how to fix this? An application we are using which also uses Mayavi as an envisage plugin is affected by this too and we have to comment the assert statement mentioned above out in pyface/ui/qt4/workbench/split_tab_widget.py
.
This is possibly an issue with Pyface. At the very least raising an assertion error probably isn't right: it's likely better to not do anything and warn or log.
If you could open an issue there that would be helpful; a PR that resolves the issue would be even better!
Thanks, I submitted two pull requests to fix the example. Nevertheless, the geometry of the window is not restored after closing the application.
Hey,
the usage of mayavi as an envisage plugin isn't working anymore. This can be noticed for example in examples/mayavi/explorer/ (there is an additional bug: explorer_app.py:110 has to be removed first).
The first run works without problem. If you now want to restart the app it fails:
The problem seems to be that the Mayavi scene is created first such that there already is an object which is not allowed for restoring the window layout of the previous run. At least this is shown if one adds
in front of
assert self.count() == 0
inpyface/ui/qt4/workbench/split_tab_widget.py
.The problem doesn't occur if one loads only the mayavi plugins:
I'm using traits 6.3.2, traitsui 7.4.0, pyface 7.4.2, mayavi 4.8.0, envisage 6.0.1.