# libtmux.Pane.resize_pane

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

```
libtmux.Pane.resize_pane(
    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 pane, deprecated by :meth:`Pane.resize`.

## Deprecated

0.28 — Deprecated by :meth:`Pane.resize`.

## Parameters

- `# Adjustments`
- `adjustment_direction` (`ResizeAdjustmentDirection | None`)
- `adjustment` (`int | None`)
- `# Manual`
- `height` (`str | int | None`)
- `width` (`str | int | None`)
- `# Zoom`
- `zoom` (`bool | None`)
- `# Mouse`
- `mouse` (`bool | None`)
- `# Optional flags`
- `trim_below` (`bool | None`)
