简体   繁体   中英

How do I manually trigger an event with PyGTK event handler?

after connecting an event to a function, I would like a way to trigger the event manually (without the event actually happening). I'm looking for something like jQuery's .trigger() function.

Thanks

在小部件上使用emit方法 ,例如button.emit("clicked")

我认为gtk.main_do_event()是您想要的

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