getDisplayState

I get an error saying the name ‘getDisplayState’ is not definet when I type:

print getDisplayState()

What’s the correct way to write this? I got this from the DisplayInformation of the API reference.

I found the answer in here:

https://discourse.panda3d.org/viewtopic.php?t=3160&highlight=resolution