def OnContentChange(self, event):
        """Event handler for updating the content"""

        self.ignore_changes = True
        self.SetValue(u"" if event.text is None else event.text)

        self.ignore_changes = False

        event.Skip()
Event handler for updating the content