def _prepare_pane(self, dock_widget, include_sizes=True):
        pane = self._get_pane(dock_widget)
        if include_sizes:
            pane.width = dock_widget.widget().width()
            pane.height = dock_widget.widget().height()
        return pane
Returns a sized PaneItem for a QDockWidget.
dataset/ETHPy150Open enthought/pyface/pyface/ui/qt4/tasks/main_window_layout.py/MainWindowLayout._prepare_pane