# libtmux.Window.__enter__

- **Module:** libtmux.Window
- **Package:** libtmux
- **Language:** Python
- **Kind:** method
- **Source:** https://github.com/tmux-python/libtmux/blob/9fdd083a8181a827889337b63cd4e6daea661a8c/src/libtmux/window.py#L133
- **Page:** https://libtmux.org/en/py/latest/reference/libtmux-window-__enter__/

```
libtmux.Window.__enter__(self) -> Self
```

Enter the context, returning self.

## Returns

:class:`Window`
    The window instance
