class_docstr: An editor window that can serve as an output file.
  
  Also the future base class for the Python shell window.
  This class has no input facilities.
  
  Adds binding to open a file at a line to the text widget.
class_docstr_tok: ["An","editor","window","that","can","serve","as","an","output","file",".","Also","the","future","base","class","for","the","Python","shell","window",".","This","class","has","no","input","facilities",".","Adds","binding","to","open","a","file","at","a","line","to","the","text","widget","."]
docstr: Handle request to open file/line.
  
  If the selected or previous line in the output window
  contains a file name and line number, then open that file
  name in a new window and position on the line number.
  
  Otherwise, display an error messagebox.
docstr_tok: ["Handle","request","to","open","file\/line",".","If","the","selected","or","previous","line","in","the","output","window","contains","a","file","name","and","line","number",",","then","open","that","file","name","in","a","new","window","and","position","on","the","line","number",".","Otherwise",",","display","an","error","messagebox","."]
code: def goto_file_line(self, event=None):
      """Handle request to open file/line.
  
      If the selected or previous line in the output window
      contains a file name and line number, then open that file
      name in a new window and position on the line number.
  
      Otherwise, display an error messagebox.
      """
      line = self.text.get("insert linestart", "insert lineend")
      result = file_line_helper(line)
      if not result:
          # Try the previous line.  This is handy e.g. in tracebacks,
          # where you tend to right-click on the displayed source line
          line = self.text.get(
              "insert -1line linestart", "insert -1line lineend"
          )
          result = file_line_helper(line)
          if not result:
              self.showerror(
                  "No special line",
                  "The line you point at doesn't look like "
                  "a valid file name followed by a line number.",
                  parent=self.text,
              )
              return
      filename, lineno = result
      self.flist.gotofileline(filename, lineno)
  
file_path: cpython/Lib/idlelib/outwin.py
imports: import re
  from tkinter import messagebox
  from idlelib.editor import EditorWindow
label_desc: Use image node_id 9 for calling the OutputWindow obj's underlying member method code with example usage: obj.goto_file_line(event) without return types