# libtmux.Pane.__getitem__

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

```
libtmux.Pane.__getitem__(self, key: str) -> t.Any
```

Return item lookup by key. Deprecated in favor of attributes.

## Deprecated

0.17 — Deprecated in favor of attributes. e.g. ``pane['window_name']`` is now
accessed via ``pane.window_name``.

## Parameters

- `key` (`str`)
