--
You received this message because you are subscribed to the Google Groups "pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyqtgraph+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/4bb03ced-4faa-4eaf-b10e-496f85558677%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
docks = self.area.findAll()[1]
print(docks)for dock in docks.values():
dock.setParent(None)
dock.label.setParent(None)But this a workaround because it is not using the builtin .close() method from the Dock class and it is going to wash out all the docks, closable or not.
thanksMarcos
def close_all_docks(self): active_docks = self.dock_area.findAll()[1] for name in active_docks.keys(): logger.debug('close dock window %s', name) active_docks[name].close() # fix: without this, last dock is floating and not closed QtCore.QCoreApplication.instance().processEvents()