根据youtube和某些网站上的教程,我知道网格布局在行和列的基础上就像xlsheet。但是我坚持一个简单的设计。
但是我的设计变成了这样。我对python完全不了解。 请帮我。为什么我的设计出错了?
我的代码是:
# ----- Row 0 -----
lbl_head = tk.Label(win,text ='Titile',font = ('courier'))
lbl_head.grid (row=0, column=5, padx = 120, pady = 10,columnspan=2)
lbl_Amount = tk.Label(win,text ='Amount$:',font = ('courier'))
lbl_Amount.grid (row=2, column=0)
label_TotalAmount = tk.Label(win,text ='11111',font = ('courier'))
label_TotalAmount.grid(row = 2, column = 1)
lbl_Balance = tk.Label(win,text ='Balance$:',font = ('courier'))
lbl_Balance.grid (row=2, column=2)
label_totalBalance = tk.Label(win,text ='11111',font = ('courier'))
label_totalBalance.grid(row = 2, column = 3)