Getting window size?

I’ve been searching through the documentation, forum and google. That looked like easy task…

I have standard resize able window and I’d like to get that window’s size (or size of the display region). I guess the method to get these values should be somewhere in base.*?

Maybe this is what you are looking for?
panda3d.org/apiref.php?page= … ixelHeight
or
panda3d.org/apiref.php?page= … w#getXSize
Aspect ratio is in base:

base.getAspectRatio()

Use base.win.getXSize() and base.win.getYSize().

Thanks rdb :slight_smile: