我不明白为啥错了,这样传参哪里错了
正确的写法
class LoginInterface(Frame):
def __init__(self,parent=None):
super().__init__(parent)
self.count_manager_dict=count_manager_dict
self.pack(expand=1, fill="both")
错误的写法
报错:AttributeError: 'dict' object has no attribute 'tk'
class LoginInterface(Frame):
def __init__(self,count_manager_dict, parent=None):
super().__init__(parent)
self.count_manager_dict=count_manager_dict
self.pack(expand=1, fill="both")