def _create_container_for_process(pymux, window, arrangement_pane, zoom=False):
@Condition<EOL>def clock_is_visible():<EOL><INDENT>return arrangement_pane.clock_mode<EOL><DEDENT>@Condition<EOL>def pane_numbers_are_visible():<EOL><INDENT>return pymux.display_pane_numbers<EOL><DEDENT>terminal_is_focused = has_focus(arrangement_pane.terminal)<EOL>def get_terminal_style():<EOL><INDENT>if terminal_is_focused():<EOL><INDENT>result = '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>result = '<STR_LIT>'<EOL><DEDENT>return result<EOL><DEDENT>def get_titlebar_text_fragments():<EOL><INDENT>result = []<EOL>if zoom:<EOL><INDENT>result.append(('<STR_LIT>', '<STR_LIT>'))<EOL><DEDENT>if arrangement_pane.process.is_terminated:<EOL><INDENT>result.append(('<STR_LIT>', '<STR_LIT>'))<EOL><DEDENT>if arrangement_pane.display_scroll_buffer:<EOL><INDENT>result.append(('<STR_LIT>', '<STR_LIT>' % arrangement_pane.scroll_buffer_title))<EOL>document = arrangement_pane.scroll_buffer.document<EOL>result.append(('<STR_LIT>', '<STR_LIT>' % (<EOL>document.cursor_position_row, document.cursor_position_col)))<EOL><DEDENT>if arrangement_pane.name:<EOL><INDENT>result.append(('<STR_LIT>', '<STR_LIT>' % arrangement_pane.name))<EOL>result.append(('<STR_LIT>', '<STR_LIT:U+0020>'))<EOL><DEDENT>return result + [<EOL>('<STR_LIT>', format_pymux_string(pymux, '<STR_LIT>', pane=arrangement_pane))  <EOL>]<EOL><DEDENT>def get_pane_index():<EOL><INDENT>try:<EOL><INDENT>w = pymux.arrangement.get_active_window()<EOL>index = w.get_pane_index(arrangement_pane)<EOL><DEDENT>except ValueError:<EOL><INDENT>index = '<STR_LIT:/>'<EOL><DEDENT>return '<STR_LIT>' % index<EOL><DEDENT>def on_click():<EOL><INDENT>"<STR_LIT>"<EOL>arrangement_pane.clock_mode = False<EOL>pymux.arrangement.get_active_window().active_pane = arrangement_pane<EOL>pymux.invalidate()<EOL><DEDENT>return HighlightBordersIfActive(<EOL>window,<EOL>arrangement_pane,<EOL>get_terminal_style,<EOL>FloatContainer(<EOL>HSplit([<EOL>TracePaneWritePosition(<EOL>pymux, arrangement_pane,<EOL>content=arrangement_pane.terminal),<EOL>]),<EOL>floats=[<EOL>Float(content=<EOL>ConditionalContainer(<EOL>content=VSplit([<EOL>Window(<EOL>height=<NUM_LIT:1>,<EOL>content=FormattedTextControl(<EOL>get_titlebar_text_fragments)),<EOL>Window(<EOL>height=<NUM_LIT:1>,<EOL>width=<NUM_LIT:4>,<EOL>content=FormattedTextControl(get_pane_index),<EOL>style='<STR_LIT>')<EOL>], style='<STR_LIT>'),<EOL>filter=Condition(lambda: pymux.enable_pane_status)),<EOL>left=<NUM_LIT:0>, right=<NUM_LIT:0>, top=-<NUM_LIT:1>, height=<NUM_LIT:1>, z_index=Z_INDEX.WINDOW_TITLE_BAR),<EOL>Float(<EOL>content=ConditionalContainer(BigClock(on_click),<EOL>filter=clock_is_visible)),<EOL>Float(content=ConditionalContainer(<EOL>content=PaneNumber(pymux, arrangement_pane),<EOL>filter=pane_numbers_are_visible)),<EOL>]<EOL>)<EOL>)<EOL>
Create a `Container` with a titlebar for a process.