def decorate_gtk_mainfunc(function):
def decorated_function(*args, **kwargs):
run_mainloop(function, Gtk.main_quit, None, *args, **kwargs)
return decorated_function
# We could override Gtk.main_iteration and Gtk.main_iteration_do too,
# but that does not seem to be necessary (because they don't dispatch
# our event handler, but instead return; this means that the exception
# is raised anyways).
mainloop_terminate_ctrl_c.py 文件源码
python
阅读 21
收藏 0
点赞 0
评论 0
评论列表
文章目录