Here is my question:
Im adding a string to a listbox created using two other strings. This is all taking place in a loop. Simplified code looks like this :
a = "some string"
b = "some other string"
mystring = a.ljust(Some_Number) + " " + b
print(mystring)
myListbox.insert(myindex,mystring)
I would like to have something that looks like this in my listbox :
"dfasdfsdf dfsd"
"sdfsdf adfsdsfsaf"
"sd adfsdf"
Basically the second string always starting at the same index(Some_number + " "). When I print it in the command prompt i get exactly what i want but in the Listbox the spacing is not the same and all over the place. Any thoughts why this happens and how to fix it?
Thanks for any help.
fontargument when creating the listbox, I don't know your platform butCourieris fixed width.