def kill_window(pymux, variables):
    " Kill all panes in the current window. "
    for pane in pymux.arrangement.get_active_window().panes:
        pymux.kill_pane(pane)
Kill all panes in the current window.