from tkinter import *
root = Tk("1500x1500")
root.title('2116')
Label(root, text='整理号:').grid(row=0, column=0)
Label(root, text='C-No:').grid(row=0, column=1)
Label(root, text='订货单位:').grid(row=0, column=2)
Label(root, text='科名:').grid(row=0, column=3)
Label(root, text='委托人:').grid(row=0, column=4)
Label(root, text='委托年、月、日:').grid(row=0, column=5)
e1 = Entry(root)
e2 = Entry(root)
e3 = Entry(root)
e4 = Entry(root)
e5 = Entry(root)
e6 = Entry(root)
e1.grid(row=1, column=0, padx=0, pady=0)
e2.grid(row=1, column=1, padx=0, pady=0)
e3.grid(row=1, column=2, padx=0, pady=0)
e4.grid(row=1, column=3, padx=0, pady=0)
e5.grid(row=1, column=4, padx=0, pady=0)
e6.grid(row=1, column=5, padx=0, pady=0)
def show(): # 当输入内容时点击获取信息会打印
print(e1.get(),e2.get()," ",e3.get()," ",e4.get(),e5.get()," ",e6.get())
Button(root, text='获取信息', width=10, command=show) \
\
.grid(row=3, column=0, sticky=W, padx=10, pady=5)
mainloop()