You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
could you had an empty loop event function for HandledWindow ? HandledWindow can't handle events if you haven't a loop event, and since you don't inherit from window, we can't use pollEvent.
Here is the code to add to HandledWindow :
def empty_event_loop(self):
cdef sf.Event *p = new sf.Event()
while self.p_window.pollEvent(p[0]):
pass
del p
Thanks !
The text was updated successfully, but these errors were encountered:
Hi,
could you had an empty loop event function for HandledWindow ? HandledWindow can't handle events if you haven't a loop event, and since you don't inherit from window, we can't use pollEvent.
Here is the code to add to HandledWindow :
Thanks !
The text was updated successfully, but these errors were encountered: