No Toolbars - NMGRL/pychron GitHub Wiki
Pyface version 8.0.0 contains a bug that causes toolbars for application windows to now be created
See https://github.com/enthought/pyface/issues/1251 for more details.
The fix is simple but requires editing the pyface source code.
- find to PyFace directory used by pychron
- on windows
Users\username\AppData\local\miniconda3\envs\pychron\Lib\site-packages\pyface\ui\qt
- on mac/linux
...envs/pychron/lib/python3.10/site-packages/pyface/ui/qt
- edit the file
appliction_window.py
def _update_tool_bar_managers(self, event):
if self.control is not None:
# Remove the old toolbars.
for child in self.control.children():
if isinstance(child, QtGui.QToolBar):
self.control.removeToolBar(child)
child.deleteLater()
# Add the new toolbars.
if event.new is not None:
# self.create_status_bar(self.control) # This the offending line. replace with _create_tool_bar(...
self._create_tool_bar(self.control)