import Gaffer import GafferUI # creating a collapsible group box collapsibleGroupBox = GafferUI.CollapsibleGroupBox( label = "My Group Box" )
import Gaffer import GafferUI # creating a widget myWidget = GafferUI.Label( "My Widget" ) # adding widget to the group box collapsibleGroupBox = GafferUI.CollapsibleGroupBox( label = "My Group Box" ) collapsibleGroupBox.append( myWidget )This example shows how to add a widget, in this case a label, to a collapsible group box. The widget will appear inside the collapsible group box and be hidden when the box is collapsed. Package Library: Gaffer.