Frame
when I set a frame as
separator = Frame(height=5, bd=1, relief=SUNKEN)
it shows like:
Then when I set a frame as
separator = Frame(height=10, bd=5, relief=SUNKEN)
it shows like:
So we can see:
1. “height” set the height of the frame.
2. “bd” set the margin shadow of the frame.
Grid
Use Grid method to place all your widgets:
Label(master, text="用户名:").grid(row=1)
Label(master, text="密码:").grid(row=2, sticky=E)
// sticky=E means stick to right of grid (2,1)
Label(master, text="服务器:").grid(row=3)
Input1 = Entry(master)
Input1.grid(row=1, column=1)
Input2 = Entry(master)
Input2.grid(row=2, column=1)
Input3 = Entry(master)
Input3.grid(row=3, column=1)