# libtmux.Window

- **Module:** libtmux
- **Package:** libtmux
- **Language:** Python
- **Kind:** class
- **Source:** https://github.com/tmux-python/libtmux/blob/38e368c11117fb4aeb2f082d552cd4f210eae06a/src/libtmux/window.py#L54
- **Bases:** [`Obj`](/en/py/stable/reference/libtmux-neo-obj/), [`OptionsMixin`](/en/py/stable/reference/libtmux-options-optionsmixin/), [`HooksMixin`](/en/py/stable/reference/libtmux-hooks-hooksmixin/)
- **Page:** https://libtmux.org/en/py/stable/reference/libtmux-window/

:term:`tmux(1)` :term:`Window` [window_manual]_.

Holds :class:`Pane` objects.

## Examples

```python
>>> window = session.new_window('My project', attach=True)
```

```python
>>> window
Window(@2 2:My project, Session($... ...))
```

Windows have panes:

```python
>>> window.panes
[Pane(...)]
```

```python
>>> window.active_pane
Pane(...)
```

Relations moving up:

```python
>>> window.session
Session(...)
```

```python
>>> window.window_id == session.active_window.window_id
True
```

```python
>>> window == session.active_window
True
```

```python
>>> window in session.windows
True
```

The window can be used as a context manager to ensure proper cleanup:

```python
>>> with session.new_window() as window:
...     pane = window.split()
...     # Do work with the pane
...     # Window will be killed automatically when exiting the context
```

## References

- [window_manual] tmux window. openbsd manpage for TMUX(1). "Each session has one or more windows linked to it. A window occupies the entire screen and may be split into rectangular panes..." https://man.openbsd.org/tmux.1#DESCRIPTION. Accessed April 1st, 2018.

## Members

### Parent objects

- [`session`](/en/py/stable/reference/libtmux-window-session/) (property): Parent session of window.
- [`server`](/en/py/stable/reference/libtmux-window-server/) (attribute)

### Collections and queries

- [`panes`](/en/py/stable/reference/libtmux-window-panes/) (property): Panes contained by window.
- [`search_panes`](/en/py/stable/reference/libtmux-window-search_panes/) (method): Panes in this window, optionally filtered by tmux.

### Common operations

- [`split`](/en/py/stable/reference/libtmux-window-split/) (method): Split window on active pane and return the created :class:`Pane`.
- [`select_layout`](/en/py/stable/reference/libtmux-window-select_layout/) (method): Select layout for window.
- [`kill`](/en/py/stable/reference/libtmux-window-kill/) (method): Kill :class:`Window`.
- [`rename_window`](/en/py/stable/reference/libtmux-window-rename_window/) (method): Rename window.
- [`link`](/en/py/stable/reference/libtmux-window-link/) (method): Link this window to another session via ``$ tmux link-window``.
- [`unlink`](/en/py/stable/reference/libtmux-window-unlink/) (method): Unlink this window from the current session via ``$ tmux unlink-window``.
- [`select`](/en/py/stable/reference/libtmux-window-select/) (method): Select window.
- [`id`](/en/py/stable/reference/libtmux-window-id/) (property): Alias of :attr:`Window.window_id`.
- [`name`](/en/py/stable/reference/libtmux-window-name/) (property): Alias of :attr:`Window.window_name`.
- [`resize`](/en/py/stable/reference/libtmux-window-resize/) (method): Resize tmux window.
- [`move_window`](/en/py/stable/reference/libtmux-window-move_window/) (method): Move current :class:`Window` object ``$ tmux move-window``.
- [`rotate`](/en/py/stable/reference/libtmux-window-rotate/) (method): Rotate pane positions in the window via ``$ tmux rotate-window``.
- [`height`](/en/py/stable/reference/libtmux-window-height/) (property): Alias of :attr:`Window.window_height`.
- [`width`](/en/py/stable/reference/libtmux-window-width/) (property): Alias of :attr:`Window.window_width`.
- [`next_layout`](/en/py/stable/reference/libtmux-window-next_layout/) (method): Cycle to the next layout via ``$ tmux next-layout``.
- [`respawn`](/en/py/stable/reference/libtmux-window-respawn/) (method): Respawn the window process via ``$ tmux respawn-window``.
- [`swap`](/en/py/stable/reference/libtmux-window-swap/) (method): Swap this window with another via ``$ tmux swap-window``.
- [`active_pane`](/en/py/stable/reference/libtmux-window-active_pane/) (property): Return attached :class:`Pane`.
- [`index`](/en/py/stable/reference/libtmux-window-index/) (property): Alias of :attr:`Window.window_index`.
- [`refresh`](/en/py/stable/reference/libtmux-window-refresh/) (method): Refresh window attributes from tmux.
- [`previous_layout`](/en/py/stable/reference/libtmux-window-previous_layout/) (method): Cycle to the previous layout via ``$ tmux previous-layout``.
- [`last_pane`](/en/py/stable/reference/libtmux-window-last_pane/) (method): Select the last (previously active) pane via ``$ tmux last-pane``.
- [`linked_sessions`](/en/py/stable/reference/libtmux-window-linked_sessions/) (property): Every session this window is reachable from.
- [`display_message`](/en/py/stable/reference/libtmux-window-display_message/) (method): Display message at window scope via ``$ tmux display-message``.
- [`cmd`](/en/py/stable/reference/libtmux-window-cmd/) (method): Execute tmux subcommand within window context.
- [`select_pane`](/en/py/stable/reference/libtmux-window-select_pane/) (method): Select pane and return selected :class:`Pane`.
- [`from_env`](/en/py/stable/reference/libtmux-window-from_env/) (method): Return the window containing the pane this process runs inside of.
- [`from_window_id`](/en/py/stable/reference/libtmux-window-from_window_id/) (method): Create Window from existing window_id.
- [`new_pane`](/en/py/stable/reference/libtmux-window-new_pane/) (method): Create a floating :class:`Pane` in this window (``$ tmux new-pane``).
- [`new_window`](/en/py/stable/reference/libtmux-window-new_window/) (method): Create new window respective of current window's position.

### Other members

- [`default_hook_scope`](/en/py/stable/reference/libtmux-window-default_hook_scope/) (attribute)
- [`default_option_scope`](/en/py/stable/reference/libtmux-window-default_option_scope/) (attribute)
- [`attached_pane`](/en/py/stable/reference/libtmux-window-attached_pane/) (property): Return attached :class:`Pane`.
- [`children`](/en/py/stable/reference/libtmux-window-children/) (property): Was used by TmuxRelationalObject (but that's longer used in this class).
- [`find_where`](/en/py/stable/reference/libtmux-window-find_where/) (method): Filter through panes, return first :class:`Pane`.
- [`get`](/en/py/stable/reference/libtmux-window-get/) (method): Return key-based lookup. Deprecated by attributes.
- [`get_by_id`](/en/py/stable/reference/libtmux-window-get_by_id/) (method): Return pane by id. Deprecated in favor of :meth:`.panes.get()`.
- [`kill_window`](/en/py/stable/reference/libtmux-window-kill_window/) (method): Kill the current :class:`Window` object. ``$ tmux kill-window``.
- [`list_panes`](/en/py/stable/reference/libtmux-window-list_panes/) (method): Return list of :class:`Pane` for the window.
- [`select_window`](/en/py/stable/reference/libtmux-window-select_window/) (method): Select window.
- [`set_window_option`](/en/py/stable/reference/libtmux-window-set_window_option/) (method): Set option for tmux window. Deprecated by :meth:`Window.set_option()`.
- [`show_window_option`](/en/py/stable/reference/libtmux-window-show_window_option/) (method): Return option for target window. Deprecated by :meth:`Window.show_option()`.
- [`show_window_options`](/en/py/stable/reference/libtmux-window-show_window_options/) (method): Show options for tmux window. Deprecated by :meth:`Window.show_options()`.
- [`split_window`](/en/py/stable/reference/libtmux-window-split_window/) (method): Split window and return the created :class:`Pane`.
- [`where`](/en/py/stable/reference/libtmux-window-where/) (method): Filter through panes, return list of :class:`Pane`.
- [`__enter__`](/en/py/stable/reference/libtmux-window-__enter__/) (method): Enter the context, returning self.
- [`__eq__`](/en/py/stable/reference/libtmux-window-__eq__/) (method): Equal operator for :class:`Window` object.
- [`__exit__`](/en/py/stable/reference/libtmux-window-__exit__/) (method): Exit the context, killing the window if it exists.
- [`__getitem__`](/en/py/stable/reference/libtmux-window-__getitem__/) (method): Return item lookup by key. Deprecated in favor of attributes.
- [`__repr__`](/en/py/stable/reference/libtmux-window-__repr__/) (method): Representation of :class:`Window` object.
- [`_list_panes`](/en/py/stable/reference/libtmux-window-_list_panes/) (method): Return list of panes (deprecated in favor of :meth:`.panes`).
- [`_panes`](/en/py/stable/reference/libtmux-window-_panes/) (property): Property / alias to return :meth:`~._list_panes`.

## Inherited members

- [`show_options`](/en/py/stable/reference/libtmux-window-show_options/) (method), inherited from `libtmux.options.OptionsMixin`: Return all options for the target.
- [`show_hooks`](/en/py/stable/reference/libtmux-window-show_hooks/) (method), inherited from `libtmux.hooks.HooksMixin`: Return a dict of hooks for the target.
- [`set_option`](/en/py/stable/reference/libtmux-window-set_option/) (method), inherited from `libtmux.options.OptionsMixin`: Set option for tmux target.
- [`unset_option`](/en/py/stable/reference/libtmux-window-unset_option/) (method), inherited from `libtmux.options.OptionsMixin`: Unset option for tmux target.
- [`show_option`](/en/py/stable/reference/libtmux-window-show_option/) (method), inherited from `libtmux.options.OptionsMixin`: Return option value for the target.
- [`set_hook`](/en/py/stable/reference/libtmux-window-set_hook/) (method), inherited from `libtmux.hooks.HooksMixin`: Set hook for tmux target.
- [`unset_hook`](/en/py/stable/reference/libtmux-window-unset_hook/) (method), inherited from `libtmux.hooks.HooksMixin`: Unset hook for tmux target.
- [`window_active`](/en/py/stable/reference/libtmux-window-window_active/) (attribute), inherited from `libtmux.neo.Obj`
- [`window_layout`](/en/py/stable/reference/libtmux-window-window_layout/) (attribute), inherited from `libtmux.neo.Obj`
- [`session_id`](/en/py/stable/reference/libtmux-window-session_id/) (attribute), inherited from `libtmux.neo.Obj`
- [`window_activity`](/en/py/stable/reference/libtmux-window-window_activity/) (attribute), inherited from `libtmux.neo.Obj`
- [`window_linked`](/en/py/stable/reference/libtmux-window-window_linked/) (attribute), inherited from `libtmux.neo.Obj`
- [`set_hooks`](/en/py/stable/reference/libtmux-window-set_hooks/) (method), inherited from `libtmux.hooks.HooksMixin`: Set multiple indexed hooks at once.
- [`run_hook`](/en/py/stable/reference/libtmux-window-run_hook/) (method), inherited from `libtmux.hooks.HooksMixin`: Run a hook immediately. Useful for testing.
- [`show_hook`](/en/py/stable/reference/libtmux-window-show_hook/) (method), inherited from `libtmux.hooks.HooksMixin`: Return value for a hook.
- [`active_window_index`](/en/py/stable/reference/libtmux-window-active_window_index/) (attribute), inherited from `libtmux.neo.Obj`
- [`alternate_saved_x`](/en/py/stable/reference/libtmux-window-alternate_saved_x/) (attribute), inherited from `libtmux.neo.Obj`
- [`alternate_saved_y`](/en/py/stable/reference/libtmux-window-alternate_saved_y/) (attribute), inherited from `libtmux.neo.Obj`
- [`bracket_paste_flag`](/en/py/stable/reference/libtmux-window-bracket_paste_flag/) (attribute), inherited from `libtmux.neo.Obj`
- [`buffer_name`](/en/py/stable/reference/libtmux-window-buffer_name/) (attribute), inherited from `libtmux.neo.Obj`
- [`buffer_sample`](/en/py/stable/reference/libtmux-window-buffer_sample/) (attribute), inherited from `libtmux.neo.Obj`
- [`buffer_size`](/en/py/stable/reference/libtmux-window-buffer_size/) (attribute), inherited from `libtmux.neo.Obj`
- [`client_activity`](/en/py/stable/reference/libtmux-window-client_activity/) (attribute), inherited from `libtmux.neo.Obj`
- [`client_cell_height`](/en/py/stable/reference/libtmux-window-client_cell_height/) (attribute), inherited from `libtmux.neo.Obj`
- [`client_cell_width`](/en/py/stable/reference/libtmux-window-client_cell_width/) (attribute), inherited from `libtmux.neo.Obj`
- [`client_control_mode`](/en/py/stable/reference/libtmux-window-client_control_mode/) (attribute), inherited from `libtmux.neo.Obj`
- [`client_created`](/en/py/stable/reference/libtmux-window-client_created/) (attribute), inherited from `libtmux.neo.Obj`
- [`client_discarded`](/en/py/stable/reference/libtmux-window-client_discarded/) (attribute), inherited from `libtmux.neo.Obj`
- [`client_flags`](/en/py/stable/reference/libtmux-window-client_flags/) (attribute), inherited from `libtmux.neo.Obj`
- [`client_height`](/en/py/stable/reference/libtmux-window-client_height/) (attribute), inherited from `libtmux.neo.Obj`
- [`client_key_table`](/en/py/stable/reference/libtmux-window-client_key_table/) (attribute), inherited from `libtmux.neo.Obj`
- [`client_last_session`](/en/py/stable/reference/libtmux-window-client_last_session/) (attribute), inherited from `libtmux.neo.Obj`
- [`client_mode_format`](/en/py/stable/reference/libtmux-window-client_mode_format/) (attribute), inherited from `libtmux.neo.Obj`
- [`client_name`](/en/py/stable/reference/libtmux-window-client_name/) (attribute), inherited from `libtmux.neo.Obj`
- [`client_pid`](/en/py/stable/reference/libtmux-window-client_pid/) (attribute), inherited from `libtmux.neo.Obj`
- [`client_prefix`](/en/py/stable/reference/libtmux-window-client_prefix/) (attribute), inherited from `libtmux.neo.Obj`
- [`client_readonly`](/en/py/stable/reference/libtmux-window-client_readonly/) (attribute), inherited from `libtmux.neo.Obj`
- [`client_session`](/en/py/stable/reference/libtmux-window-client_session/) (attribute), inherited from `libtmux.neo.Obj`
- [`client_termfeatures`](/en/py/stable/reference/libtmux-window-client_termfeatures/) (attribute), inherited from `libtmux.neo.Obj`
- [`client_termname`](/en/py/stable/reference/libtmux-window-client_termname/) (attribute), inherited from `libtmux.neo.Obj`
- [`client_termtype`](/en/py/stable/reference/libtmux-window-client_termtype/) (attribute), inherited from `libtmux.neo.Obj`
- [`client_tty`](/en/py/stable/reference/libtmux-window-client_tty/) (attribute), inherited from `libtmux.neo.Obj`
- [`client_uid`](/en/py/stable/reference/libtmux-window-client_uid/) (attribute), inherited from `libtmux.neo.Obj`
- [`client_user`](/en/py/stable/reference/libtmux-window-client_user/) (attribute), inherited from `libtmux.neo.Obj`
- [`client_utf8`](/en/py/stable/reference/libtmux-window-client_utf8/) (attribute), inherited from `libtmux.neo.Obj`
- [`client_width`](/en/py/stable/reference/libtmux-window-client_width/) (attribute), inherited from `libtmux.neo.Obj`
- [`client_written`](/en/py/stable/reference/libtmux-window-client_written/) (attribute), inherited from `libtmux.neo.Obj`
- [`command_list_alias`](/en/py/stable/reference/libtmux-window-command_list_alias/) (attribute), inherited from `libtmux.neo.Obj`
- [`command_list_name`](/en/py/stable/reference/libtmux-window-command_list_name/) (attribute), inherited from `libtmux.neo.Obj`
- [`command_list_usage`](/en/py/stable/reference/libtmux-window-command_list_usage/) (attribute), inherited from `libtmux.neo.Obj`
- [`config_files`](/en/py/stable/reference/libtmux-window-config_files/) (attribute), inherited from `libtmux.neo.Obj`
- [`copy_cursor_line`](/en/py/stable/reference/libtmux-window-copy_cursor_line/) (attribute), inherited from `libtmux.neo.Obj`
- [`copy_cursor_word`](/en/py/stable/reference/libtmux-window-copy_cursor_word/) (attribute), inherited from `libtmux.neo.Obj`
- [`copy_cursor_x`](/en/py/stable/reference/libtmux-window-copy_cursor_x/) (attribute), inherited from `libtmux.neo.Obj`
- [`copy_cursor_y`](/en/py/stable/reference/libtmux-window-copy_cursor_y/) (attribute), inherited from `libtmux.neo.Obj`
- [`current_file`](/en/py/stable/reference/libtmux-window-current_file/) (attribute), inherited from `libtmux.neo.Obj`
- [`cursor_character`](/en/py/stable/reference/libtmux-window-cursor_character/) (attribute), inherited from `libtmux.neo.Obj`
- [`cursor_flag`](/en/py/stable/reference/libtmux-window-cursor_flag/) (attribute), inherited from `libtmux.neo.Obj`
- [`cursor_x`](/en/py/stable/reference/libtmux-window-cursor_x/) (attribute), inherited from `libtmux.neo.Obj`
- [`cursor_y`](/en/py/stable/reference/libtmux-window-cursor_y/) (attribute), inherited from `libtmux.neo.Obj`
- [`history_bytes`](/en/py/stable/reference/libtmux-window-history_bytes/) (attribute), inherited from `libtmux.neo.Obj`
- [`history_limit`](/en/py/stable/reference/libtmux-window-history_limit/) (attribute), inherited from `libtmux.neo.Obj`
- [`history_size`](/en/py/stable/reference/libtmux-window-history_size/) (attribute), inherited from `libtmux.neo.Obj`
- [`hooks`](/en/py/stable/reference/libtmux-window-hooks/) (attribute), inherited from `libtmux.hooks.HooksMixin`
- [`insert_flag`](/en/py/stable/reference/libtmux-window-insert_flag/) (attribute), inherited from `libtmux.neo.Obj`
- [`keypad_cursor_flag`](/en/py/stable/reference/libtmux-window-keypad_cursor_flag/) (attribute), inherited from `libtmux.neo.Obj`
- [`keypad_flag`](/en/py/stable/reference/libtmux-window-keypad_flag/) (attribute), inherited from `libtmux.neo.Obj`
- [`last_window_index`](/en/py/stable/reference/libtmux-window-last_window_index/) (attribute), inherited from `libtmux.neo.Obj`
- [`line`](/en/py/stable/reference/libtmux-window-line/) (attribute), inherited from `libtmux.neo.Obj`
- [`mouse_all_flag`](/en/py/stable/reference/libtmux-window-mouse_all_flag/) (attribute), inherited from `libtmux.neo.Obj`
- [`mouse_any_flag`](/en/py/stable/reference/libtmux-window-mouse_any_flag/) (attribute), inherited from `libtmux.neo.Obj`
- [`mouse_button_flag`](/en/py/stable/reference/libtmux-window-mouse_button_flag/) (attribute), inherited from `libtmux.neo.Obj`
- [`mouse_sgr_flag`](/en/py/stable/reference/libtmux-window-mouse_sgr_flag/) (attribute), inherited from `libtmux.neo.Obj`
- [`mouse_standard_flag`](/en/py/stable/reference/libtmux-window-mouse_standard_flag/) (attribute), inherited from `libtmux.neo.Obj`
- [`next_session_id`](/en/py/stable/reference/libtmux-window-next_session_id/) (attribute), inherited from `libtmux.neo.Obj`
- [`origin_flag`](/en/py/stable/reference/libtmux-window-origin_flag/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_active`](/en/py/stable/reference/libtmux-window-pane_active/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_at_bottom`](/en/py/stable/reference/libtmux-window-pane_at_bottom/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_at_left`](/en/py/stable/reference/libtmux-window-pane_at_left/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_at_right`](/en/py/stable/reference/libtmux-window-pane_at_right/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_at_top`](/en/py/stable/reference/libtmux-window-pane_at_top/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_bg`](/en/py/stable/reference/libtmux-window-pane_bg/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_bottom`](/en/py/stable/reference/libtmux-window-pane_bottom/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_current_command`](/en/py/stable/reference/libtmux-window-pane_current_command/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_current_path`](/en/py/stable/reference/libtmux-window-pane_current_path/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_dead`](/en/py/stable/reference/libtmux-window-pane_dead/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_dead_signal`](/en/py/stable/reference/libtmux-window-pane_dead_signal/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_dead_status`](/en/py/stable/reference/libtmux-window-pane_dead_status/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_dead_time`](/en/py/stable/reference/libtmux-window-pane_dead_time/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_fg`](/en/py/stable/reference/libtmux-window-pane_fg/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_flags`](/en/py/stable/reference/libtmux-window-pane_flags/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_floating_flag`](/en/py/stable/reference/libtmux-window-pane_floating_flag/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_format`](/en/py/stable/reference/libtmux-window-pane_format/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_height`](/en/py/stable/reference/libtmux-window-pane_height/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_id`](/en/py/stable/reference/libtmux-window-pane_id/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_in_mode`](/en/py/stable/reference/libtmux-window-pane_in_mode/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_index`](/en/py/stable/reference/libtmux-window-pane_index/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_input_off`](/en/py/stable/reference/libtmux-window-pane_input_off/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_last`](/en/py/stable/reference/libtmux-window-pane_last/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_left`](/en/py/stable/reference/libtmux-window-pane_left/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_marked`](/en/py/stable/reference/libtmux-window-pane_marked/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_marked_set`](/en/py/stable/reference/libtmux-window-pane_marked_set/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_mode`](/en/py/stable/reference/libtmux-window-pane_mode/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_path`](/en/py/stable/reference/libtmux-window-pane_path/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_pb_progress`](/en/py/stable/reference/libtmux-window-pane_pb_progress/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_pb_state`](/en/py/stable/reference/libtmux-window-pane_pb_state/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_pid`](/en/py/stable/reference/libtmux-window-pane_pid/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_pipe`](/en/py/stable/reference/libtmux-window-pane_pipe/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_pipe_pid`](/en/py/stable/reference/libtmux-window-pane_pipe_pid/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_right`](/en/py/stable/reference/libtmux-window-pane_right/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_search_string`](/en/py/stable/reference/libtmux-window-pane_search_string/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_start_command`](/en/py/stable/reference/libtmux-window-pane_start_command/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_start_path`](/en/py/stable/reference/libtmux-window-pane_start_path/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_synchronized`](/en/py/stable/reference/libtmux-window-pane_synchronized/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_tabs`](/en/py/stable/reference/libtmux-window-pane_tabs/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_title`](/en/py/stable/reference/libtmux-window-pane_title/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_top`](/en/py/stable/reference/libtmux-window-pane_top/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_tty`](/en/py/stable/reference/libtmux-window-pane_tty/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_width`](/en/py/stable/reference/libtmux-window-pane_width/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_x`](/en/py/stable/reference/libtmux-window-pane_x/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_y`](/en/py/stable/reference/libtmux-window-pane_y/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_z`](/en/py/stable/reference/libtmux-window-pane_z/) (attribute), inherited from `libtmux.neo.Obj`
- [`pane_zoomed_flag`](/en/py/stable/reference/libtmux-window-pane_zoomed_flag/) (attribute), inherited from `libtmux.neo.Obj`
- [`pid`](/en/py/stable/reference/libtmux-window-pid/) (attribute), inherited from `libtmux.neo.Obj`
- [`scroll_position`](/en/py/stable/reference/libtmux-window-scroll_position/) (attribute), inherited from `libtmux.neo.Obj`
- [`scroll_region_lower`](/en/py/stable/reference/libtmux-window-scroll_region_lower/) (attribute), inherited from `libtmux.neo.Obj`
- [`scroll_region_upper`](/en/py/stable/reference/libtmux-window-scroll_region_upper/) (attribute), inherited from `libtmux.neo.Obj`
- [`search_match`](/en/py/stable/reference/libtmux-window-search_match/) (attribute), inherited from `libtmux.neo.Obj`
- [`selection_end_x`](/en/py/stable/reference/libtmux-window-selection_end_x/) (attribute), inherited from `libtmux.neo.Obj`
- [`selection_end_y`](/en/py/stable/reference/libtmux-window-selection_end_y/) (attribute), inherited from `libtmux.neo.Obj`
- [`selection_start_x`](/en/py/stable/reference/libtmux-window-selection_start_x/) (attribute), inherited from `libtmux.neo.Obj`
- [`selection_start_y`](/en/py/stable/reference/libtmux-window-selection_start_y/) (attribute), inherited from `libtmux.neo.Obj`
- [`session_activity`](/en/py/stable/reference/libtmux-window-session_activity/) (attribute), inherited from `libtmux.neo.Obj`
- [`session_alerts`](/en/py/stable/reference/libtmux-window-session_alerts/) (attribute), inherited from `libtmux.neo.Obj`
- [`session_attached`](/en/py/stable/reference/libtmux-window-session_attached/) (attribute), inherited from `libtmux.neo.Obj`
- [`session_attached_list`](/en/py/stable/reference/libtmux-window-session_attached_list/) (attribute), inherited from `libtmux.neo.Obj`
- [`session_created`](/en/py/stable/reference/libtmux-window-session_created/) (attribute), inherited from `libtmux.neo.Obj`
- [`session_format`](/en/py/stable/reference/libtmux-window-session_format/) (attribute), inherited from `libtmux.neo.Obj`
- [`session_group`](/en/py/stable/reference/libtmux-window-session_group/) (attribute), inherited from `libtmux.neo.Obj`
- [`session_group_attached`](/en/py/stable/reference/libtmux-window-session_group_attached/) (attribute), inherited from `libtmux.neo.Obj`
- [`session_group_attached_list`](/en/py/stable/reference/libtmux-window-session_group_attached_list/) (attribute), inherited from `libtmux.neo.Obj`
- [`session_group_list`](/en/py/stable/reference/libtmux-window-session_group_list/) (attribute), inherited from `libtmux.neo.Obj`
- [`session_group_many_attached`](/en/py/stable/reference/libtmux-window-session_group_many_attached/) (attribute), inherited from `libtmux.neo.Obj`
- [`session_group_size`](/en/py/stable/reference/libtmux-window-session_group_size/) (attribute), inherited from `libtmux.neo.Obj`
- [`session_grouped`](/en/py/stable/reference/libtmux-window-session_grouped/) (attribute), inherited from `libtmux.neo.Obj`
- [`session_last_attached`](/en/py/stable/reference/libtmux-window-session_last_attached/) (attribute), inherited from `libtmux.neo.Obj`
- [`session_many_attached`](/en/py/stable/reference/libtmux-window-session_many_attached/) (attribute), inherited from `libtmux.neo.Obj`
- [`session_marked`](/en/py/stable/reference/libtmux-window-session_marked/) (attribute), inherited from `libtmux.neo.Obj`
- [`session_name`](/en/py/stable/reference/libtmux-window-session_name/) (attribute), inherited from `libtmux.neo.Obj`
- [`session_path`](/en/py/stable/reference/libtmux-window-session_path/) (attribute), inherited from `libtmux.neo.Obj`
- [`session_stack`](/en/py/stable/reference/libtmux-window-session_stack/) (attribute), inherited from `libtmux.neo.Obj`
- [`session_windows`](/en/py/stable/reference/libtmux-window-session_windows/) (attribute), inherited from `libtmux.neo.Obj`
- [`socket_path`](/en/py/stable/reference/libtmux-window-socket_path/) (attribute), inherited from `libtmux.neo.Obj`
- [`start_time`](/en/py/stable/reference/libtmux-window-start_time/) (attribute), inherited from `libtmux.neo.Obj`
- [`synchronized_output_flag`](/en/py/stable/reference/libtmux-window-synchronized_output_flag/) (attribute), inherited from `libtmux.neo.Obj`
- [`uid`](/en/py/stable/reference/libtmux-window-uid/) (attribute), inherited from `libtmux.neo.Obj`
- [`user`](/en/py/stable/reference/libtmux-window-user/) (attribute), inherited from `libtmux.neo.Obj`
- [`version`](/en/py/stable/reference/libtmux-window-version/) (attribute), inherited from `libtmux.neo.Obj`
- [`window_active_clients`](/en/py/stable/reference/libtmux-window-window_active_clients/) (attribute), inherited from `libtmux.neo.Obj`
- [`window_active_clients_list`](/en/py/stable/reference/libtmux-window-window_active_clients_list/) (attribute), inherited from `libtmux.neo.Obj`
- [`window_active_sessions`](/en/py/stable/reference/libtmux-window-window_active_sessions/) (attribute), inherited from `libtmux.neo.Obj`
- [`window_active_sessions_list`](/en/py/stable/reference/libtmux-window-window_active_sessions_list/) (attribute), inherited from `libtmux.neo.Obj`
- [`window_activity_flag`](/en/py/stable/reference/libtmux-window-window_activity_flag/) (attribute), inherited from `libtmux.neo.Obj`
- [`window_bell_flag`](/en/py/stable/reference/libtmux-window-window_bell_flag/) (attribute), inherited from `libtmux.neo.Obj`
- [`window_bigger`](/en/py/stable/reference/libtmux-window-window_bigger/) (attribute), inherited from `libtmux.neo.Obj`
- [`window_cell_height`](/en/py/stable/reference/libtmux-window-window_cell_height/) (attribute), inherited from `libtmux.neo.Obj`
- [`window_cell_width`](/en/py/stable/reference/libtmux-window-window_cell_width/) (attribute), inherited from `libtmux.neo.Obj`
- [`window_end_flag`](/en/py/stable/reference/libtmux-window-window_end_flag/) (attribute), inherited from `libtmux.neo.Obj`
- [`window_flags`](/en/py/stable/reference/libtmux-window-window_flags/) (attribute), inherited from `libtmux.neo.Obj`
- [`window_format`](/en/py/stable/reference/libtmux-window-window_format/) (attribute), inherited from `libtmux.neo.Obj`
- [`window_height`](/en/py/stable/reference/libtmux-window-window_height/) (attribute), inherited from `libtmux.neo.Obj`
- [`window_id`](/en/py/stable/reference/libtmux-window-window_id/) (attribute), inherited from `libtmux.neo.Obj`
- [`window_index`](/en/py/stable/reference/libtmux-window-window_index/) (attribute), inherited from `libtmux.neo.Obj`
- [`window_last_flag`](/en/py/stable/reference/libtmux-window-window_last_flag/) (attribute), inherited from `libtmux.neo.Obj`
- [`window_linked_sessions`](/en/py/stable/reference/libtmux-window-window_linked_sessions/) (attribute), inherited from `libtmux.neo.Obj`
- [`window_linked_sessions_list`](/en/py/stable/reference/libtmux-window-window_linked_sessions_list/) (attribute), inherited from `libtmux.neo.Obj`
- [`window_marked_flag`](/en/py/stable/reference/libtmux-window-window_marked_flag/) (attribute), inherited from `libtmux.neo.Obj`
- [`window_name`](/en/py/stable/reference/libtmux-window-window_name/) (attribute), inherited from `libtmux.neo.Obj`
- [`window_offset_x`](/en/py/stable/reference/libtmux-window-window_offset_x/) (attribute), inherited from `libtmux.neo.Obj`
- [`window_offset_y`](/en/py/stable/reference/libtmux-window-window_offset_y/) (attribute), inherited from `libtmux.neo.Obj`
- [`window_panes`](/en/py/stable/reference/libtmux-window-window_panes/) (attribute), inherited from `libtmux.neo.Obj`
- [`window_raw_flags`](/en/py/stable/reference/libtmux-window-window_raw_flags/) (attribute), inherited from `libtmux.neo.Obj`
- [`window_silence_flag`](/en/py/stable/reference/libtmux-window-window_silence_flag/) (attribute), inherited from `libtmux.neo.Obj`
- [`window_stack_index`](/en/py/stable/reference/libtmux-window-window_stack_index/) (attribute), inherited from `libtmux.neo.Obj`
- [`window_start_flag`](/en/py/stable/reference/libtmux-window-window_start_flag/) (attribute), inherited from `libtmux.neo.Obj`
- [`window_visible_layout`](/en/py/stable/reference/libtmux-window-window_visible_layout/) (attribute), inherited from `libtmux.neo.Obj`
- [`window_width`](/en/py/stable/reference/libtmux-window-window_width/) (attribute), inherited from `libtmux.neo.Obj`
- [`window_zoomed_flag`](/en/py/stable/reference/libtmux-window-window_zoomed_flag/) (attribute), inherited from `libtmux.neo.Obj`
- [`wrap_flag`](/en/py/stable/reference/libtmux-window-wrap_flag/) (attribute), inherited from `libtmux.neo.Obj`
- [`__init__`](/en/py/stable/reference/libtmux-window-__init__/) (method), inherited from `libtmux.options.OptionsMixin`: When not a user (custom) option, scope can be implied.
- [`_refresh`](/en/py/stable/reference/libtmux-window-_refresh/) (method), inherited from `libtmux.neo.Obj`: Refresh dataclass fields from a single ``list-*`` row.
- [`_show_hook`](/en/py/stable/reference/libtmux-window-_show_hook/) (method), inherited from `libtmux.hooks.HooksMixin`: Return value for the hook.
- [`_show_option`](/en/py/stable/reference/libtmux-window-_show_option/) (method), inherited from `libtmux.options.OptionsMixin`: Return option value for the target.
- [`_show_option_raw`](/en/py/stable/reference/libtmux-window-_show_option_raw/) (method), inherited from `libtmux.options.OptionsMixin`: Return raw option output for target.
- [`_show_options`](/en/py/stable/reference/libtmux-window-_show_options/) (method), inherited from `libtmux.options.OptionsMixin`: Return a dict of options for the target.
- [`_show_options_dict`](/en/py/stable/reference/libtmux-window-_show_options_dict/) (method), inherited from `libtmux.options.OptionsMixin`: Return dict of options for the target.
- [`_show_options_raw`](/en/py/stable/reference/libtmux-window-_show_options_raw/) (method), inherited from `libtmux.options.OptionsMixin`: Return a dict of options for the target.
- [`_tmux_bin`](/en/py/stable/reference/libtmux-window-_tmux_bin/) (property), inherited from `libtmux.hooks.HooksMixin`: Resolve tmux_bin from self (Server) or self.server (Session/Window/Pane).

## In other ports

### A tmux window

- PowerShell: [`LibTmux\Get-TmuxWindow`](/en/powershell/latest/reference/libtmux-get-tmuxwindow/) (cmdlet). This cmdlet reads shared .NET `LibTmux.Window` placements. Use [`-Server`](/en/powershell/latest/reference/libtmux-get-tmuxwindow/#LibTmux%5CGet-TmuxWindow.parameter.Server) for all sessions or [`-Session`](/en/powershell/latest/reference/libtmux-get-tmuxwindow/#LibTmux%5CGet-TmuxWindow.parameter.Session) for one session.
- Julia: [`LibTmux.WindowSnapshot`](/en/julia/latest/reference/libtmux-windowsnapshot/) (struct). `WindowSnapshot` holds captured physical-window data. `WindowLink` records a placement in a session; actions use `WindowRef`.
- Ruby: [`LibTmux::Window`](/en/ruby/latest/reference/libtmux-window-1vfx/) (class)
- Lua: [`libtmux.Window`](/en/lua/latest/reference/libtmux-window/) (class)
- TypeScript: [`window.Window`](/en/ts/latest/reference/window-window/) (class)
- Rust: [`window.Window`](/en/rs/latest/reference/window-window/) (struct)
- Go: [`tmux.Window`](/en/go/latest/reference/tmux-window/) (struct)
- Java: [`io.github.libtmux.Window.Window`](/en/java/latest/reference/io-github-libtmux-window-window/) (class)
- C#: [`LibTmux.Window`](/en/csharp/latest/reference/libtmux-window/) (class)
- C++: [`libtmux::Window`](/en/cxx/latest/reference/libtmux-window/) (class)
- Swift: [`Window`](/en/swift/latest/reference/window/) (struct)
- Kotlin: [`io.github.libtmux.kotlin.Window`](/en/kotlin/latest/reference/io-github-libtmux-kotlin-window/) (class)
- Scala: [`io.github.libtmux.scaladsl.Window`](/en/scala/latest/reference/io-github-libtmux-scaladsl-window/) (typealias)
- F#: [`LibTmux.FSharp.Window`](/en/fsharp/latest/reference/libtmux-fsharp-window/) (module). This F# module identifies shared .NET `LibTmux.Window` placements and builds deferred pane queries. `Query.list` acquires their results from tmux.
