# libtmux.Window.resize

- **Module:** libtmux.Window
- **Package:** libtmux
- **Language:** Python
- **Kind:** method
- **Source:** https://github.com/tmux-python/libtmux/blob/036c521c4b83ce6e434eb50afe2a0d08a6a05e46/src/libtmux/window.py#L717
- **Page:** https://libtmux.org/reference/py/libtmux-window-resize/

```
libtmux.Window.resize(self, # Adjustments, adjustment_direction: ResizeAdjustmentDirection | None = None, adjustment: int | None = None, # Manual, height: int | None = None, width: int | None = None, # Expand / Shrink, expand: bool | None = None, shrink: bool | None = None) -> Window
```

Resize tmux window.

## Parameters

- `self`
- `# Adjustments`
- `adjustment_direction` (ResizeAdjustmentDirection | None) — direction to adjust, ``Up``, ``Down``, ``Left``, ``Right``.
- `adjustment` (int | None)
- `# Manual`
- `height` (int | None) — ``resize-window -y`` dimensions
- `width` (int | None) — ``resize-window -x`` dimensions
- `# Expand / Shrink`
- `expand` (bool | None) — expand window
- `shrink` (bool | None) — shrink window

## Returns

:class:`Window`

## Raises

- `exc.LibTmuxException`
- `exc.PaneAdjustmentDirectionRequiresAdjustment`
