# libtmux.Window.width

- **Module:** libtmux
- **Package:** libtmux
- **Language:** Python
- **Kind:** property
- **Source:** https://github.com/tmux-python/libtmux/blob/38e368c11117fb4aeb2f082d552cd4f210eae06a/src/libtmux/window.py#L1695
- **Page:** https://libtmux.org/en/py/stable/reference/libtmux-window-width/

```
libtmux.Window.width(self) -> str | None
```

Alias of :attr:`Window.window_width`.

```python
>>> window.width.isdigit()
True
```

```python
>>> window.width == window.window_width
True
```

## In other ports

### A window's width in cells

- Ruby: [`LibTmux::WindowSnapshot#width`](/en/ruby/latest/reference/libtmux-windowsnapshot-width/) (method)
- Lua: [`libtmux.SnapshotWindow.width`](/en/lua/latest/reference/libtmux-snapshotwindow-width/) (attribute)
- Rust: [`window.Window.width`](/en/rs/latest/reference/window-window-width/) (method)
- Go: [`tmux.Window.Width`](/en/go/latest/reference/tmux-window-width/) (method)
- C#: [`LibTmux.Window.Width`](/en/csharp/latest/reference/libtmux-window-width/) (property)
- C++: [`libtmux::Window::width`](/en/cxx/latest/reference/libtmux-window-width-ncb8/) (method)
- Swift: [`Window.width`](/en/swift/latest/reference/window-width/) (property)
