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.