set the focus of a direct entry


I have a direct entry that I am using for a chat box and when it appears I want it to have focus so that the user can start typing in it. I have tried .setFocus() but it doesnt work.

entry['focus'] = True

Thank you that worked. I get confused sometimes with DirectGUI, like when to use functions or when to use the dictionary.

No worries. I agree it’s confusing.