code: def OnText(self, event=None):
          "text event"
          try:
              if event.GetString() != '':
                  self.__CheckValid(event.GetString())
          except:
              pass
          event.Skip(f OnText(self, event=None):
          "text event"
          try:
              if event.GetString() != '':
                  self.__CheckValid(event.GetString())
          except:
              pass
          event.Skip()
docs: text event