For testing purposes, I'm trying to print in the console everything that I write in a RichTextCtrl. However, it isn't working. Here is the way I wrote the binding for the RichTextCtrl, called textArea:
self.textArea.Bind( wx.EVT_KEY_DOWN, self.syntaxColoring_C )
And here is the event handler:
def syntaxColoring_C( self, event ):
print self.textArea.GetValue()
However, when I type something, only a blank line is printed in the console, and nothing appears written in the RichTextCtrl. What am I doing wrong? Thanks in advance.