f3d icon indicating copy to clipboard operation
f3d copied to clipboard

Cant set window name when debug

Open GitCodeBoy opened this issue 2 years ago • 3 comments

Describe the bug When I configure the solution to “release”,I can change the name of window by using setWindowName.And cant do same things when the solution is configured to "debug" , the window name has changed,but not the name I wanted and the new name of window is just a bunch of garbled code

To Reproduce Here is my simple test code:

if __name__ == '__main__':
    engine = f3d.engine(f3d.window.NATIVE)
    window:f3d.window = engine.getWindow()
    window.setWindowName("test")
    interactor:f3d.interactor = engine.getInteractor()
    interactor.start()

Expected behavior can set window name in any mode

System Information:

  • OS: Windows 10

GitCodeBoy avatar Sep 13 '22 02:09 GitCodeBoy

Unable to reproduce:

  • build F3D in release
  • PYTHONPATH=/home/glow/dev/f3d/build/lib python ./a.py
  • window is named test

a.py content:

[glow@frollo ~/dev/f3d/build]$ cat a.py 
import f3d

engine = f3d.engine(f3d.window.NATIVE)
window:f3d.window = engine.getWindow()
window.setWindowName("test")
interactor:f3d.interactor = engine.getInteractor()
interactor.start()

mwestphal avatar Sep 14 '22 13:09 mwestphal

Maybe it's specific to windows

Meakk avatar Sep 14 '22 13:09 Meakk

Good point, should be checked.

mwestphal avatar Sep 14 '22 13:09 mwestphal

I'm not able to load f3d module on windows, no idea if the PYTHONPATH is set is correct. Did you try @Meakk ?

mwestphal avatar Sep 22 '22 04:09 mwestphal

No, but it does work in the CI

Meakk avatar Sep 22 '22 04:09 Meakk

@GitCodeBoy please test with the provided code and reopen if needed.

mwestphal avatar Sep 23 '22 04:09 mwestphal