I have a wxTextCtrl and I would like to be able to when typing certain key words that after finishing typing the word they key word changes colour.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’ll need to use a TextCtrl in Rich Text mode or the StyledTextCtrl. Then you’ll want to monitor the key presses so you can tell when the user has pressed the spacebar and act on that. You should check out Editra, a Python Editor created in wxPython and included with the wxPython demo and docs package. I am pretty sure it has this functionality already.