Skip to content

Empty loop even for HandledWindow #149

Open
@MickaelSERENO

Description

@MickaelSERENO

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 :

def empty_event_loop(self):
        cdef sf.Event *p = new sf.Event()
        while self.p_window.pollEvent(p[0]):
            pass
        del p

Thanks !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions