pygfx.objects.WindowEvent
- class pygfx.objects.WindowEvent(*args, width=None, height=None, pixel_ratio=None, **kwargs)
Bases:
Event
Window resize event
- Parameters:
args (Any) – Positional arguments are forwarded to the
base class
.width (int) – The new width of the application window in screen space (px).
height (int) – The new height of the application window in screen space (px).
pixel_ratio (float) – The new ratio between logical pixels and physical pixels.
kwargs (Any) – Additional keyword arguments are forward to the
base class
.
Examples
Pytorch Integration