import GafferUI with GafferUI.Window( "My Window" ) as window : with GafferUI.LinearContainer( orientation = GafferUI.LinearContainer.Orientation.Vertical ) : GafferUI.Label( "Welcome to My Window!" ) GafferUI.Button( "Hello" ) GafferUI.Button( "Goodbye" )
import GafferUI with GafferUI.Window( "My Window" ) as window : with GafferUI.LinearContainer( orientation = GafferUI.LinearContainer.Orientation.Horizontal ) : GafferUI.Slider() GafferUI.Label( "Slider Value" ) GafferUI.CheckBox( label="Enable Slider" )This code creates a window with a horizontal `LinearContainer`, which contains a slider, a label, and a checkbox. The `LinearContainer`'s `orientation` parameter is set to `Horizontal` to align the widgets next to each other. Overall, these code examples showcase how to use the `LinearContainer` to create flexible and versatile user interfaces in GafferUI. The GafferUI library is a package library that comes with the Gaffer framework for creating visual effects and animations in films and television.