window_size

This property get the size of the current window.

Syntax

py.window_size -> Dict[str, int]

Usage

correct usage
size = py.window_size

# print the width
print(size["width"])

# print the height
print(size["height"]

Arguments

  • None

Yields

  • Dict[str, int] - The current window's size as a dictionary

Last updated