# libtmux.Pane.set_width

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

```
libtmux.Pane.set_width(self, width: int) -> Pane
```

Set pane width.

## Parameters

- `self`
- `width` (int) — Pane width, in cells.

## Returns

:class:`Pane`
    Self, for method chaining.
