

def _prepare_pane(self, dock_widget, include_sizes=True):
    ' Returns a sized PaneItem for a QDockWidget.\n        '
    pane = self._get_pane(dock_widget)
    if include_sizes:
        pane.width = dock_widget.widget().width()
        pane.height = dock_widget.widget().height()
    return pane

dataset/ETHPy150Open enthought/pyface/pyface/ui/qt4/tasks/main_window_layout.py MainWindowLayout._prepare_pane/original