# libtmux.Window.active_pane

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

```
libtmux.Window.active_pane(self) -> Pane | None
```

Return attached :class:`Pane`.

## In other ports

### The window's active pane

- TypeScript: [`window.Window.activePane`](/en/ts/latest/reference/window-window-activepane/) (method)
- Rust: [`window.Window.active_pane`](/en/rs/latest/reference/window-window-active_pane/) (method)
- Go: [`tmux.Window.ActivePane`](/en/go/latest/reference/tmux-window-activepane/) (method)
- Java: [`io.github.libtmux.Window.Window.activePane`](/en/java/latest/reference/io-github-libtmux-window-window-activepane/) (method)
- C#: [`LibTmux.Window.ActivePane`](/en/csharp/latest/reference/libtmux-window-activepane/) (property)
- C++: [`libtmux::Window::active_pane`](/en/cxx/latest/reference/libtmux-window-active_pane/) (method)
