
wxpython
奇҈迹҈、҈出҈没҈
这个作者很懒,什么都没留下…
展开
-
AttributeError: ‘MenuItem‘ object has no attribute ‘GetLabel‘问题解决
AttributeError: 'MenuItem' object has no attribute 'GetLabel'问题解决原创 2021-12-19 12:47:43 · 1590 阅读 · 2 评论 -
AttributeError: ‘MouseEvent‘ object has no attribute ‘GetPositionTuple‘问题解决
最近在学wxpython的绘画程序,遇到以下问题: AttributeError: 'MouseEvent' object has no attribute 'GetPositionTuple' 网上搜了一下答案: wxpython 4 不支持wx.MouseEvent.GetPositionTuple() 所以在获取鼠标位置时,如果要变成元组,就需要写成: tuple(wx.MouseEvent.GetPosition()) 所以绘画程序的第一个代码,需要改成一下: self.pos = event原创 2021-12-17 22:30:55 · 1240 阅读 · 1 评论