If your wxPython text control is on a Dialog, the TAB key movement will be swallowed unless you use the style TE_PROCESS_TAB. Strangely I only had the problem in Windows but not Ubuntu. I hope this helps someone because it had me stumped for quite a while.