您好我确定这应该很简单,但我是tkinter的新手。我想知道如何设置Tkinter窗口的大小。这是我到目前为止所做的:
from tkinter import *
root = Tk()
menu = Menu(root)
root.config(menu=menu)
subMenu = Menu(menu)
menu.add_cascade(label="File",menu=subMenu)
subMenu.add_command(label="New", command=donothing)
subMenu.add_command(label="Open File...", command=donothing)
subMenu.add_command(label="Close", command=donothing)
subMenu.add_separator()
subMenu.add_command(label="Exit", command=quit)
editMenu = Menu(menu)
menu.add_cascade(label="Edit",menu=editMenu)
editMenu.add_command(label="Undo", command=donothing)
editMenu.add_command(label="Redo", command=donothing)
editMenu = Menu(menu)
menu.add_cascade(label="?",menu=editMenu)
editMenu.add_command(label="Check For Updates", command=update)
editMenu.add_command(label="Change log", command=change_log)
editMenu.add_command(label="About", command=donothing)
root.mainloop()