BusStopPi.py 文件源码

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

项目:BusStopPi 作者: LoveBootCaptain 项目源码 文件源码
def loop():

    update_data()

    running = True

    while running:

        draw_to_tft()

        for event in pygame.event.get():

            if event.type == pygame.QUIT:

                running = False

                quit_all()

            elif event.type == pygame.KEYDOWN:

                if event.key == pygame.K_ESCAPE:

                    running = False

                    quit_all()

                elif event.key == pygame.K_SPACE:

                    print('\nSPACE')

    quit_all()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号