def set_stretch(self, stretch):
        sp = self.widget.sizePolicy()
        sp.setHorizontalStretch(stretch)
        sp.setVerticalStretch(stretch)
        self.widget.setSizePolicy(sp)
Set the stretch factor for the underlyling widget.
dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/qt/qt_dock_item.py/QtDockItem.set_stretch