parameters: (fname, line)
docstring: Open the given filename to the given line number
          @param fname: File name to open, relative paths will be converted to abs
                        paths.
          @param line: Line number to set the cursor to after opening the file
docstring_summary: Open the given filename to the given line number
          @param fname: File name to open, relative paths will be converted to abs
                        paths.
          @param line: Line number to set the cursor to after opening the file
docstring_tokens: Open the given filename to the given line number @param fname : File name to open relative paths will be converted to abs paths . @param line : Line number to set the cursor to after opening the file
function: def _OpenToLine(fname, line):
          """Open the given filename to the given line number
          @param fname: File name to open, relative paths will be converted to abs
                        paths.
          @param line: Line number to set the cursor to after opening the file
  
          """
          mainw = wx.GetApp().GetActiveWindow()
          nbook = mainw.GetNotebook()
          buffers = [ page.GetFileName() for page in nbook.GetTextControls() ]
          if fname in buffers:
              page = buffers.index(fname)
              nbook.ChangePage(page)
              cpage = nbook.GetPage(page)
          else:
              nbook.OnDrop([fname])
              cpage = nbook.GetPage(nbook.GetSelection())
  
          cpage.GotoLine(line)
          cpage.SetFocus()
function_tokens: def _OpenToLine ( fname , line ) : mainw = wx . GetApp ( ) . GetActiveWindow ( ) nbook = mainw . GetNotebook ( ) buffers = [ page . GetFileName ( ) for page in nbook . GetTextControls ( ) ] if fname in buffers : page = buffers . index ( fname ) nbook . ChangePage ( page ) cpage = nbook . GetPage ( page ) else : nbook . OnDrop ( [ fname ] ) cpage = nbook . GetPage ( nbook . GetSelection ( ) ) cpage . GotoLine ( line ) cpage . SetFocus ( )