# libtmux.Window.get

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

```
libtmux.Window.get(
    self, key: str, default: t.Any | None = None
) -> t.Any
```

Return key-based lookup. Deprecated by attributes.

## Deprecated

0.17 — Deprecated by attribute lookup.e.g. ``window['window_name']`` is now
accessed via ``window.window_name``.

## Parameters

- `key` (`str`)
- `default` (`t.Any | None`)
