“after” looping indefinitely: never entering mainloop

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-28 12:16:31

You want to do self.frame.after(500, self.updateBoard).

The difference here is subtle, (self.updateBoard instead of self.updateBoard()). In your version, you're passing the result of your function to the after method instead of passing the function. This results in the infinite recursion that you described.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!