src/eric7/ViewManager/ViewManager.py

branch
eric7
changeset 10677
6ee2e475490c
parent 10676
d1479a4f1426
child 10679
4d3e0ce54322
equal deleted inserted replaced
10676:d1479a4f1426 10677:6ee2e475490c
5743 # insert filename into list of recently opened files 5743 # insert filename into list of recently opened files
5744 self.addToRecentList(fn) 5744 self.addToRecentList(fn)
5745 5745
5746 return editor 5746 return editor
5747 5747
5748 @pyqtSlot(str, int, int)
5749 def openSourceFileLinePos(self, fn, lineno, pos):
5750 """
5751 Public slot to display a file in an editor at a given line and position.
5752
5753 @param fn name of file to be opened
5754 @type str
5755 @param lineno line number to place the cursor at
5756 @type int
5757 @param pos position within line to position cursor at
5758 @type int
5759 """
5760 self.openSourceFile(fn, lineno=lineno, pos=pos + 1)
5761
5748 def __connectEditor(self, editor): 5762 def __connectEditor(self, editor):
5749 """ 5763 """
5750 Private method to establish all editor connections. 5764 Private method to establish all editor connections.
5751 5765
5752 @param editor reference to the editor object to be connected 5766 @param editor reference to the editor object to be connected

eric ide

mercurial