Plugins/CheckerPlugins/Tabnanny/TabnannyDialog.py

branch
5_2_x
changeset 1642
906cd3ed0e6a
parent 1509
c0b5e693b0eb
child 2223
054c285dab38
child 2303
0ed4ed026c16
equal deleted inserted replaced
1641:b298c95cd83f 1642:906cd3ed0e6a
66 66
67 @param file filename of file (string) 67 @param file filename of file (string)
68 @param line linenumber of faulty source (integer or string) 68 @param line linenumber of faulty source (integer or string)
69 @param sourcecode faulty line of code (string) 69 @param sourcecode faulty line of code (string)
70 """ 70 """
71 itm = QTreeWidgetItem(self.resultList, [file, str(line), sourcecode]) 71 itm = QTreeWidgetItem(self.resultList)
72 itm.setData(0, Qt.DisplayRole, file)
73 itm.setData(1, Qt.DisplayRole, line)
74 itm.setData(2, Qt.DisplayRole, sourcecode)
72 itm.setTextAlignment(1, Qt.AlignRight) 75 itm.setTextAlignment(1, Qt.AlignRight)
73 76
74 def prepare(self, fileList, project): 77 def prepare(self, fileList, project):
75 """ 78 """
76 Public method to prepare the dialog with a list of filenames. 79 Public method to prepare the dialog with a list of filenames.

eric ide

mercurial