# libtmux.Pane.set_width

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

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

Set pane width.

## Parameters

- `width` (`int`): Pane width, in cells.

## Returns

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

## In other ports

### Set a pane's width

- Go: [`tmux.Pane.SetWidth`](/en/go/latest/reference/tmux-pane-setwidth/) (method)
- C#: [`LibTmux.Pane.SetWidthAsync`](/en/csharp/latest/reference/libtmux-pane-setwidthasync/) (method)
- C++: [`libtmux::Pane::set_width`](/en/cxx/latest/reference/libtmux-pane-set_width/) (method)
