I have been working on a simple textctrl project to get more acquainted with wxpython and I have hit a small road block. I am making a simple code editor, and I am currently working on the syntax highlighting. Everything works fine except because I have my textctrl bound to an event:
self.status_area.Bind(wx.EVT_CHAR, self.onKeyPress)
and I have code in that definition:
def onKeyPress (self, event):
Line = self.status_area.GetValue()
It will no longer allow the user to type in any letters. I am able to delete and create a new line without any problem, but if I type "hello" nothing will show up. When debugging my code I know its running through onKeyPress() and the code inside and if I change the code to:
def onKeyPress (self, event):
event.Skip()
it will work fine. I tried to recode the normal text editor workings into the onKeyPress() but it began to get too bulky. Any help on the matter would be greatly appreciated.