from tkinter import *
class App(Frame):
def __init__(self,master=None):
Frame._init_(self,master)
self.pack()
myapp=App()
myapp.master.title("My Do-Nothing Application")
myapp.master.maxsize(1000, 400)
myapp.mainloop()
错误:
Frame._init_(self,master)
AttributeError: type object 'Frame' has no attribute '_init_'
我写了一个简单的代码,但是有一些错误,我尽力解决它,但我不能。任何人可以帮助我解决它吗?谢谢