📜  tkinter frame inside frame - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:03.005000             🧑  作者: Mango

代码示例1
from tkinter import *

root = Tk()

frame1 = Frame(root)
frame1.pack()

frame2 = Frame(frame1)
frame2.pack()

#obviously you can add in other parameters, but this is the basic syntax. 
#instead of packing it into the root window, you pack it into the other frame.