Hi, I tried your suggestion but it did not work.
I tried a few other approaches and finally found a way that worked. Instead of using the event handler ‘pressed enter’, I used the ‘change’ handler.
Here are the codes that worked for my street and town text boxes:
def box_town_change(self, **event_args):
self.box_town.text = self.box_town.text.upper()
def box_street_change(self, **event_args):
self.box_street.text = self.box_street.text .upper()
With the above codes, no matter what the user inputs on the text boxes, the text is automatically converted to uppercase.
Thanks.