Window position


I am new to panda3d and I am trying to integrate a 3d game in a graphical interface using GTK+.

I have been trying to put the panda3d window (without borders) above the gtk window so that it seems like it’s in it. To remove the borders of the panda3d window I had to edit the /etc/Config.prc file.

My problem is that I can’t find a way to set the position of the panda3d window. I use a WindowProperties object to set its size and origin but the setOrigin function doesn’t work since I edited the configuration file.

Thanks in advance for your time

You can use

loadPrcFileData('', 'win-origin xx yy')

before the window is created. Editing the config.prc file has the same effect.

It works perfectly when the undecorated parameter is false. But when it’s true the window just won’t obey!

I am going to keep the border for now…

Thank you though, the loadPrcFileData() will be useful.