# Get window size with python

Is there a way to get the window size with python?

I found things like: https://stackoverflow.com/questions/7142342/get-window-position-size-with-python

But those are either Windows (as in the OS) specific, or require installs. I'm guessing blender has this information somewhere.

import bpy

wm = bpy.context.window_manager
for w in wm.windows:
print(w.width)
print(w.height)

• I it also possible to get the display size? Feb 9 at 9:56
• What does display size mean? make a screenshot and let me know.
– X Y
Feb 9 at 10:48
• The size of the display in pixels. E.g. monitor resolution. Feb 9 at 12:36
• I didn't find monitor resolution in blender api.
– X Y
Feb 9 at 18:05