It's me again
Well, today I have fix somes of my problems and only one survive. When I launch my script (test.py : see src.zip), only one time on two the script doesn't throw a segmentation fault. After many and many test, I found the problem :
TypeError: 'sfml.window.ResizeEvent' object is not iterable
When I do (on EventManager.update() ) :
for event in window.events:
some code....
At the beginning, the window is resize. If the first test doesn't yield an error, I can resize my window, here isn't the problem : the problem is that an event can't be a sf.ResizeEvent for the first (and only the first) test I think (I'm not sur for 100% ).
with GDB, I have this errors on the traceback (always one time on two) :
Program received signal SIGSEGV, Segmentation fault.
PyObject_GetAttrString (v=0x6d00000005750000, name=0x7ffff1d244c8 "on_resize") at Objects/object.c:819
819 Objects/object.c: Aucun fichier ou dossier de ce type.
You can find the source on the attachment (the most importante in this sources are the property and the updates functions only). Maybe the problem is that my guiml.Window inherite from sf.RenderWindow, I don't know... (Indeed, with a sf.RenderWindow, I don't have this problem).
Thank you and sorry for desagrements
.
[attachment deleted by admin]