Why wont this work... -- WindowProperties()

You haven’t imported WindowProperties, so python doesn’t know what it is. Most of the time when you see a reference to some panda object without an import call, it’s in panda3d.core. I think most people just call from panda3d.core import * at the top of everything so they can use these objects without importing them by name.