UI/Browser.py

changeset 1304
cde75ec76e8b
parent 1303
6018d7ac3aec
child 1490
ed6f2208297d
equal deleted inserted replaced
1303:6018d7ac3aec 1304:cde75ec76e8b
338 itm = self.model().item(self.currentIndex()) 338 itm = self.model().item(self.currentIndex())
339 linenos = itm.linenos() 339 linenos = itm.linenos()
340 fileName = itm.fileName() 340 fileName = itm.fileName()
341 341
342 for lineno in sorted(linenos): 342 for lineno in sorted(linenos):
343 act = self.gotoMenu.addAction(str(lineno)) 343 act = self.gotoMenu.addAction(self.trUtf8("Line {0}".format(lineno)))
344 act.setData([fileName, lineno]) 344 act.setData([fileName, lineno])
345 345
346 def _gotoAttribute(self, act): 346 def _gotoAttribute(self, act):
347 """ 347 """
348 Protected slot to handle the selection of the goto menu. 348 Protected slot to handle the selection of the goto menu.

eric ide

mercurial