尝试使用创建 Tkinter 窗口super()
。我收到此错误:
TypeError: super() argument 1 must be type, not classobj
代码:
import Tkinter as tk
class Application(tk.Frame):
def __init__(self, master):
super(Application, self).__init__(master)
self.grid()
def main():
root = tk.Tk()
root.geometry('200x150')
app = Application(root)
root.mainloop()
main()