You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@observe("tool_bar_managers.items")
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)
The trait change handler for tool bars is creating the status bar instead of the tool bars ;)
The text was updated successfully, but these errors were encountered:
toolbars were not displaying in my envisage app. Changing the code to
@observe("tool_bar_managers.items")
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)
self._create_tool_bar(self.control)
appeared to resolve the issue.
Is there a timeline for when pyface 8.0.X will be released to permanently fix this bug?
Hey,
there seems to be a copy&pasta error:
pyface/pyface/ui/qt/application_window.py
Line 159 in 46f7009
The trait change handler for tool bars is creating the status bar instead of the tool bars ;)
The text was updated successfully, but these errors were encountered: