# libtmux.Window.select_pane

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

```
libtmux.Window.select_pane(
    self, target_pane: str | int
) -> Pane | None
```

Select pane and return selected :class:`Pane`.

[`$ tmux select-pane`](/en/tmux/latest/manual/select-pane/).

## Parameters

- `target_pane` (`str | int`): 'target_pane', '-U' ,'-D', '-L', '-R', or '-l'.

## Returns

:class:`Pane`

## In other ports

### Make a pane of a window active

- Go: [`tmux.Window.SelectPane`](/en/go/latest/reference/tmux-window-selectpane/) (method)
- C#: [`LibTmux.Window.SelectPaneAsync`](/en/csharp/latest/reference/libtmux-window-selectpaneasync/) (method)
