Correct use of base.setUndecorated?

I’m trying to get my application to not have a bored or title, so I do base.setUndecorated with the showbase & windows props, but it’s not doing anything. How do I correctly use base.setUndecorated? (I know it’s a boolean)

There’s no setUndecorated function in ShowBase. Instead, do this:

wp = WindowProperties()
wp.setUndecorated(True)
base.win.requestProperties(wp)

I already did that in my code, but where do I put it and how? (If I do it before showbase, base is undefined, if I do it after, nothing happens)

You can try:
-using the undecorated config variable

from panda3d.core import loadPrcFileData
loadPrcFileData('', 'undecorated 1')

-setting default windows properties before the window opens

wp = WindowProperties()
wp.setUndecorated(True)
WindowProperties.setDefault(wp)

-(re)open the window with the given props

wp = WindowProperties()
wp.setUndecorated(True)
base.openMainWindow(props = wp)