I have a list that has 3 columns. How can I insert a tab to space out the columns while displaying the rows in a tkinter listbox.
I insert the the with:
I've done a little digging and can space them out using .format(), how can I change this code to use tabs instead?
I insert the the with:
for item in myList: listbox.insert(END, item)
I've done a little digging and can space them out using .format(), how can I change this code to use tabs instead?
for row in range(len(myList)): item = "{:<25s}{:>6s}".format(myList[row][0],myList[row][1]) print(item) listbox.insert(END, item)