#NEWLINE# def get_oriented_box( container , scrolled = True , fill = False ) : #NEWLINE# #INDENT# orientation = get_orientation ( container ) #NEWLINE# if ( orientation == 'vertical' ) : #NEWLINE# #INDENT# box1 = VBox ( ) #NEWLINE# box2 = VBox ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# box1 = HBox ( ) #NEWLINE# box2 = VBox ( ) #NEWLINE# #UNINDENT# box2 . add_widget ( box1 , stretch = 1 ) #NEWLINE# if ( not fill ) : #NEWLINE# #INDENT# box2 . add_widget ( Label ( '' ) , stretch = 1 ) #NEWLINE# #UNINDENT# if scrolled : #NEWLINE# #INDENT# sw = ScrollArea ( ) #NEWLINE# sw . set_widget ( box2 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# sw = box2 #NEWLINE# #UNINDENT# return ( box1 , sw , orientation )