# libtmux.Window.set_window_option

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

```
libtmux.Window.set_window_option(
    self, option: str, value: int | str
) -> Window
```

Set option for tmux window. Deprecated by :meth:`Window.set_option()`.

## Deprecated

0.50 — Deprecated by :meth:`Window.set_option()`.

## Parameters

- `option` (`str`)
- `value` (`int | str`)
