I am using the concat function to convert several database fields to be entered into a Tkinter Combobox.
Data:
first_name last_name city state ID
John Smith Dallas TX 1
Richard Cunningham Ft. Worth TX 2
'''
SELECT concat (first_name,' ',last_name,' ', city,', ',state,' '),ID
'''
Results:
{'John Smith Dallas, TX':1, 'Richard Cunningham Ft. Worth, TX' :2 }
What I would like to do is format the string so that for example Smith would take the same number of characters as Cunningham. Then when I put the data into the cb it would appear as columns.
Thanks for any help.