I have a code but it doesn't work as I want. I need to call (or print) the initial letter of each element in the array as uppercase.
Or alternatively: automatically converting the first letter of every word I type in the text box to uppercase will solve my problem.(in real time)
How can I do that?
editline_text = self.search_item_editline.GetText()
new_list = [x for x in autoComplete.AUTOCOMPLETE_DIC_NAMES if editline_text in x]
index = 1
for item in new_list:
if index > 10:
break
index += 1
self.editline_list.AddItem(item)