def select_next_layout(self, count=<NUM_LIT:1>):
<EOL>if len(self.panes) == <NUM_LIT:2>:<EOL><INDENT>all_layouts = [LayoutTypes.EVEN_HORIZONTAL, LayoutTypes.EVEN_VERTICAL]<EOL><DEDENT>else:<EOL><INDENT>all_layouts = LayoutTypes._ALL<EOL><DEDENT>layout = self.previous_selected_layout or LayoutTypes._ALL[-<NUM_LIT:1>]<EOL>try:<EOL><INDENT>index = all_layouts.index(layout)<EOL><DEDENT>except ValueError:<EOL><INDENT>index = <NUM_LIT:0><EOL><DEDENT>new_layout = all_layouts[(index + count) % len(all_layouts)]<EOL>self.select_layout(new_layout)<EOL>
Select next layout. (Cycle through predefined layouts.)