How do I get the monitor/screen (not window) size in Builder

The subject says it all.

I want to query the monitor size and compare it to the window size to put in a code segment.
How do I do that?

Thanks.

I think I figured it out:

from psychopy import monitors
for mon in monitors.getAllMonitors():
print(mon, monitors.Monitor(mon).getSizePix())

default [1920.0, 1080.0]
testMonitor [1024.0, 768.0]

More specifcally

print(win.monitor.name, win.monitor.getSizePix())

testMonitor [1024.0, 768.0]