# libtmux.Window.panes

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

tmux command: [`list-panes`](/en/tmux/latest/manual/list-panes/)

```
libtmux.Window.panes(self) -> QueryList[Pane]
```

Panes contained by window.

Can be accessed via
:meth:`.panes.get() <libtmux._internal.query_list.QueryList.get()>` and
:meth:`.panes.filter() <libtmux._internal.query_list.QueryList.filter()>`

## In other ports

### List a window's panes

- PowerShell: [`LibTmux\Get-TmuxPane`](/en/powershell/latest/reference/libtmux-get-tmuxpane/) (cmdlet). Use the [`-Window`](/en/powershell/latest/reference/libtmux-get-tmuxpane/#LibTmux%5CGet-TmuxPane.parameter.Window) parameter set to acquire panes in one window.
- Julia: [`LibTmux.panes`](/en/julia/latest/reference/libtmux-panes/) (function). `panes` with a captured `WindowSnapshot` reads panes in that window; missing coverage is an error.
- Ruby: [`LibTmux::Window#list_panes`](/en/ruby/latest/reference/libtmux-window-list_panes/) (method)
- TypeScript: [`window.Window.panes`](/en/ts/latest/reference/window-window-panes/) (method)
- Rust: [`window.Window.panes`](/en/rs/latest/reference/window-window-panes/) (method)
- Go: [`tmux.Window.Panes`](/en/go/latest/reference/tmux-window-panes/) (method)
- Java: [`io.github.libtmux.Window.Window.panes`](/en/java/latest/reference/io-github-libtmux-window-window-panes/) (method)
- C#: [`LibTmux.Window.Panes`](/en/csharp/latest/reference/libtmux-window-panes/) (property)
- C++: [`libtmux::Window::panes`](/en/cxx/latest/reference/libtmux-window-panes/) (method)
- Swift: [`Snapshot.panes(of:)`](/en/swift/latest/reference/snapshot-panes(of-)/) (method)
- Kotlin: [`io.github.libtmux.kotlin.Window.panes`](/en/kotlin/latest/reference/io-github-libtmux-kotlin-window-panes/) (property)
- Scala: [`io.github.libtmux.scaladsl.Window.panes`](/en/scala/latest/reference/io-github-libtmux-scaladsl-window-panes/) (method)
- F#: [`LibTmux.FSharp.Window.panes`](/en/fsharp/latest/reference/libtmux-fsharp-window-panes/) (function). Builds a deferred pane query from one `LibTmux.Window` and its server. `Query.list` acquires panes scoped to that window ID.
