#NEWLINE# def build( self ) : #NEWLINE# #INDENT# root = FocusBoxLayout ( padding = [ 10 , 10 ] , spacing = 10 ) #NEWLINE# self . grid1 = grid1 = FocusGridLayout ( cols = 4 , padding = [ 10 , 10 ] , spacing = 10 ) #NEWLINE# self . grid2 = grid2 = FocusGridLayout ( cols = 4 , padding = [ 10 , 10 ] , spacing = 10 ) #NEWLINE# root . add_widget ( FocusLabel ( text = 'Left' , size_hint_x = 0.4 ) ) #NEWLINE# root . add_widget ( grid1 ) #NEWLINE# root . add_widget ( grid2 ) #NEWLINE# root . add_widget ( FocusLabel ( text = 'Right' , size_hint_x = 0.4 ) ) #NEWLINE# for i in range ( 40 ) : #NEWLINE# #INDENT# grid1 . add_widget ( FocusLabel ( text = ( 'l' + str ( i ) ) ) ) #NEWLINE# #UNINDENT# for i in range ( 40 ) : #NEWLINE# #INDENT# grid2 . add_widget ( FocusLabel ( text = ( 'r' + str ( i ) ) ) ) #NEWLINE# #UNINDENT# grid2 . children [ 30 ] . text = grid1 . children [ 14 ] . text = grid2 . children [ 15 ] . text = grid1 . children [ 34 ] . text = 'Skip me' #NEWLINE# grid2 . children [ 15 ] . is_focusable = False #NEWLINE# grid2 . children [ 30 ] . is_focusable = False #NEWLINE# grid1 . children [ 14 ] . is_focusable = False #NEWLINE# grid1 . children [ 34 ] . is_focusable = False #NEWLINE# grid2 . children [ 35 ] . focus_next = StopIteration #NEWLINE# grid2 . children [ 35 ] . text = 'Stop forward' #NEWLINE# grid1 . children [ 10 ] . focus_next = grid2 . children [ 9 ] #NEWLINE# grid2 . children [ 10 ] . focus_next = grid1 . children [ 9 ] #NEWLINE# grid1 . children [ 10 ] . text = '-->' #NEWLINE# grid2 . children [ 10 ] . text = '<--' #NEWLINE# return i