我有这个代码
class ScreenMain(Screen):
def __init__(self,**kwarge):
super(ScreenMain,self).__init__(**kwarge)
self.ids.input2.text=get_display(arabic_reshaper.reshape(self.ids.input2.text))
当我运行代码时,它给了我这个错误
AttributeError: 'super' object has no attribute 'getattr'
我尝试了很多来解决这个问题,甚至在 Screen Mine 中添加了括号,所以代码看起来像这样:
super(ScreenMain(),self).__init__(**kwarge)
出现这个错误:
RecursionError:调用 Python 对象时超出最大递归深度
在这两种情况下我都没有找到解决方案
有没有解决办法,或者这是否变得不可能和困难