game042.py 文件源码

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

项目:eduActiv8 作者: imiolek-ireneusz 项目源码 文件源码
def handle(self, event):
        gd.BoardGame.handle(self, event)  # send event handling up
        if event.type == pygame.KEYDOWN or event.type == pygame.MOUSEBUTTONDOWN:
            self.auto_check_reset()
        if event.type == pygame.MOUSEMOTION:
            if self.drag:
                self.swap_font_color()
            #  if self.drag and self.mouse_entered_new:
            #  self.swap_font_color()
        elif event.type == pygame.MOUSEBUTTONUP:
            self.swap_font_color()
            self.check_result()
            #  if self.drag and self.mouse_entered_new:
            #  self.swap_font_color()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号