# libtmux.Pane.resize

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

```
libtmux.Pane.resize(self, # Adjustments, adjustment_direction: ResizeAdjustmentDirection | None = None, adjustment: int | None = None, # Manual, height: str | int | None = None, width: str | int | None = None, # Zoom, zoom: bool | None = None, # Mouse, mouse: bool | None = None, # Optional flags, trim_below: bool | None = None) -> Pane
```

Resize tmux pane.

## Parameters

- `self`
- `# Adjustments`
- `adjustment_direction` (ResizeAdjustmentDirection | None) — direction to adjust, ``Up``, ``Down``, ``Left``, ``Right``.
- `adjustment` (int | None)
- `# Manual`
- `height` (str | int | None) — ``resize-pane -y`` dimensions
- `width` (str | int | None) — ``resize-pane -x`` dimensions
- `# Zoom`
- `zoom` (bool | None) — expand pane
- `# Mouse`
- `mouse` (bool | None) — resize via mouse
- `# Optional flags`
- `trim_below` (bool | None) — trim below cursor

## Returns

:class:`Pane`

## Raises

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