Htechno
Htechno

Reputation: 6117

Where is the PyGTK event stack?

You can know if the event stack is empty calling the gtk.events_pending() method, but I want to manipulate the pending events and filter it before the next gtk loop cycle, this data must be stored somewhere, but where?

Thanks.

Upvotes: 0

Views: 365

Answers (1)

NG.
NG.

Reputation: 22904

You can control the event loop yourself. Rather than calling gtk.main(), you can use gtk.main_iteration.

Your loop could then be:

while running:
    #filter events here
    gtk.main_iteration(true)

see here for more info.

Upvotes: 1

Related Questions