code: def on_regexp_key(event):
      #
      # On Mac, very bad things (infinite recursion through OnPaint
      # followed by segfault) happen if you type carriage return
      #
      if event.GetKeyCode() != wx.stc.STC_KEY_RETURN:
          event.Skip()
  
imports: import re
  import wx
  import wx.stc
label_desc: Use image node_id 2 for calling the RegexpDialog obj's underlying member method code with example usage: obj.on_regexp_key(event) without return types