def break_pane(self, set_active=True):
w = self.get_active_window()<EOL>if len(w.panes) > <NUM_LIT:1>:<EOL><INDENT>pane = w.active_pane<EOL>self.get_active_window().remove_pane(pane)<EOL>self.create_window(pane, set_active=set_active)<EOL><DEDENT>
When the current window has multiple panes, remove the pane from this
window and put it in a new window.

:param set_active: When True, focus the new window.