How do I edit the color of a word without generating EVT_TEXT in wxPython?
问题 This is one part of a two part question (other part is here) So I'm working with wxPython and PyEnchant trying to get some fancy features going. Specifically, I want my text controls to change the color of mispelled words. I can do this if I bind the following code to a button. (where input is a wx.TextCtrl ) chkr = SpellChecker("en_US",self.input.GetValue()) words = self.input.GetValue().split() wrongWords = [err.word for err in chkr] self.input.ChangeValue("") for word in words: if not word