#NEWLINE# def setStackWidget( self , widget ) : #NEWLINE# #INDENT# ' Set the stack widget for this stack item.\n\n        Parameters\n        ----------\n        widget : QWidget\n            The QWidget to use as the stack widget in this item.\n\n        ' #NEWLINE# self . _stack_widget = widget #NEWLINE# self . layout ( ) . setWidget ( widget )