Title Change

How to change title of the Panda Viewer from “Panda” to something else.




        wp = WindowProperties()
        wp.setTitle("i need to read the manual!")

The above Code is giving following error:

NameError: name ‘window’ is not defined

window is your panda window, ie. base.win if you use the default.

thanks ynjh_jo, i lifted it form code that i guess defined window and i thought it was global.

Thanks a lot. It Works.

But the word “Panda” can be seen for a fraction of seconds.
Is there a work around for this as well.

This has been done using following way:

from pandac.PandaModules import * 
loadPrcFileData("", "window-title MyTitle") 
loadPrcFileData("", "icon-filename MySiteLogo.ico") 
import direct.directbase.DirectStart[

Thanks to all anyways.