How to specify window title?

How can specify the window title? I used

loadPrcFileData("", "win-title MyPanda")

but the title remains “Panda” anyway.

You have to do the above before you open the window (i.e. before you import DirectStart). After you have opened the window, you can usually change the title with:

wp = WindowProperties()
wp.setTitle('My new title')


Yes, I did it before importing DirectStart, but without success. The second way (with WindowProperties()) worked well, thank you.

Ah, you’re right. The correct variable name is window-title, not win-title.


Then someone who has access to wiki should update the manual. There it is called “win-title”.

You have access to the wiki, too. :slight_smile: