# libtmux.Window.__enter__

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

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

Enter the context, returning self.

## Returns

:class:`Window`
    The window instance
