Use pady
or ipady
option. See Tkinter.Grid.grid
.
Label(number,textvariable=c1,width=int(c1.get())//10,height=1,fg="red",anchor="ne",bg="green").grid(row=0,column=2, sticky=E, pady=10)
Label(number,textvariable=c2,width=int(c2.get())//10,height=1,fg="blue",anchor="ne",bg="snow").grid(row=4,column=2, sticky=E, pady=10)
Label(number,textvariable=c3,width=int(c3.get())//10,height=1,fg="cyan",anchor="ne",bg="grey").grid(row=8,column=2, sticky=E, pady=10)
Label(number,textvariable=c4,width=int(c4.get())//10,height=1,fg="gold",anchor="ne",bg="blue").grid(row=16,column=2, sticky=E, pady=10)
# ^^^^^^^
BTW, you can specify the padding as pixel, not as cm.