# tmuxp.plugin.TmuxpPlugin.on_window_create

- **Module:** tmuxp.plugin.TmuxpPlugin
- **Package:** tmuxp
- **Language:** Python
- **Kind:** method
- **Source:** https://github.com/tmux-python/tmuxp/blob/153acdf6ff1268b14d3d03ed488f545a7123c8f1/src/tmuxp/plugin.py#L297
- **Page:** https://libtmux.org/en/py/latest/workspace/reference/tmuxp-plugin-tmuxpplugin-on_window_create/

```
tmuxp.plugin.TmuxpPlugin.on_window_create(self, window: Window) -> None
```

Provide a window hook previous to doing anything with a window.

This runs runs before anything is created in the windows, like panes.

## Parameters

- `self`
- `window` (Window): window to hook into
