# libtmux.Window.get_by_id

- **Module:** libtmux
- **Package:** libtmux
- **Language:** Python
- **Kind:** method
- **Source:** https://github.com/tmux-python/libtmux/blob/38e368c11117fb4aeb2f082d552cd4f210eae06a/src/libtmux/window.py#L1879
- **Page:** https://libtmux.org/en/py/stable/reference/libtmux-window-get_by_id/

```
libtmux.Window.get_by_id(self, pane_id: str) -> Pane | None
```

Return pane by id. Deprecated in favor of :meth:`.panes.get()`.

## Deprecated

0.16 — Deprecated by :meth:`.panes.get()`.

## Parameters

- `pane_id` (`str`)
