#NEWLINE# def test_stacklayout_orientation_btrl( self ) : #NEWLINE# #INDENT# sl = StackLayout ( ) #NEWLINE# wgts = [ Widget ( size_hint = ( 0.5 , 0.5 ) ) for i in range ( 4 ) ] #NEWLINE# for wgt in wgts : #NEWLINE# #INDENT# sl . add_widget ( wgt ) #NEWLINE# #UNINDENT# sl . orientation = 'bt-rl' #NEWLINE# sl . do_layout ( ) #NEWLINE# self . assertEqual ( wgts [ 0 ] . pos , [ ( sl . width / 2.0 ) , 0 ] ) #NEWLINE# self . assertEqual ( wgts [ 1 ] . pos , [ ( sl . width / 2.0 ) , ( sl . height / 2.0 ) ] ) #NEWLINE# self . assertEqual ( wgts [ 2 ] . pos , [ 0 , 0 ] ) #NEWLINE# self . assertEqual ( i [ 3 ] . pos , [ 0 , ( sl . height / 2.0 ) ] )