37,743
社区成员
发帖
与我相关
我的任务
分享import Tkinter as tk
class MyWindow():
def __init__(self):
self.root = tk.Tk()
button=tk.Button(self.root, text='NEXT',
command=self.OnNext)
button.pack()
def OnNext(self):
win = MyWindow()
self.root.destroy()
win = MyWindow()
win.root.mainloop()