Feb-01-2019, 12:41 AM
Hi so I am trying to create a table using grids and entrys in tkinter but my columnspan option is being ignored
def table(list, system): window = Toplevel(system) window.grid_columnconfigure((0, 1), weight=5, uniform="foo") window.grid_columnconfigure(2, weight=30, uniform="foo") height = len(list) + 2 width = 3 for i in range(height): for j in range(width): cel = Entry(window) cel.config(disabledbackground='white') cel.config(justify='center') cel.config(disabledforeground='black') if i == 0: if j == 0: cel.grid(row=i,column=j) cel.insert(0, "#") elif j == 1: cel.insert(0, "#") cel.grid(row=i,column=j) elif j == 2: cel.insert(0, "Materias") cel.grid(row=i,column=j, columnspan=30) cel.config(state='disabled')That is the function to create it I am trying to make it so that the third column is longer but what it is outputing is the 3 columns and the third one has a lot of whitespace Can somebody point to what am I doing wrong?