gui.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:device-updater 作者: spark 项目源码 文件源码
def kivy_event_thread_dispatch(proxy, target, name, f):
    """
    a function factory that returns a function that will schedule
    the given function for execution on the event thread.
    """
    def schedule(self, *args, **kwargs):
        def scheduled(dt):
            f(*args, **kwargs)
        Clock.schedule_once(scheduled)
    return schedule
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号