如何设置窗口的大小?

时间:2018-03-04 18:02:11

标签: python tkinter window size toplevel

如何调整root窗口的大小?

try:                        # In order to be able to import tkinter for
    import tkinter as tk    # either in python 2 or in python 3
except ImportError:
    import Tkinter as tk


root = tk.Tk()
tk.mainloop()

如何调整window的尺寸?

try:                        # In order to be able to import tkinter for
    import tkinter as tk    # either in python 2 or in python 3
except ImportError:
    import Tkinter as tk


root = tk.Tk()
window = tk.Toplevel(root)
tk.mainloop()

0 个答案:

没有答案