简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM