Plugins/CheckerPlugins/Tabnanny/TabnannyDialog.py

branch
Py2 comp.
changeset 3142
55030c09e142
parent 3065
070b35dde35e
parent 3091
8239cae3f947
child 3143
b6ee3ac90a6f
equal deleted inserted replaced
3141:72f3bde98c58 3142:55030c09e142
53 53
54 self.__fileList = [] 54 self.__fileList = []
55 self.__project = None 55 self.__project = None
56 self.filterFrame.setVisible(False) 56 self.filterFrame.setVisible(False)
57 57
58 self.checkProgress.setVisible(False)
59
58 def __resort(self): 60 def __resort(self):
59 """ 61 """
60 Private method to resort the tree. 62 Private method to resort the tree.
61 """ 63 """
62 self.resultList.sortItems( 64 self.resultList.sortItems(
110 112
111 self.cancelled = False 113 self.cancelled = False
112 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) 114 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False)
113 self.buttonBox.button(QDialogButtonBox.Cancel).setEnabled(True) 115 self.buttonBox.button(QDialogButtonBox.Cancel).setEnabled(True)
114 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) 116 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True)
117 self.checkProgress.setVisible(True)
115 QApplication.processEvents() 118 QApplication.processEvents()
116 119
117 if isinstance(fn, list): 120 if isinstance(fn, list):
118 files = fn 121 files = fn
119 elif os.path.isdir(fn): 122 elif os.path.isdir(fn):
180 self.trUtf8('No indentation errors found.'), "", "") 183 self.trUtf8('No indentation errors found.'), "", "")
181 QApplication.processEvents() 184 QApplication.processEvents()
182 self.resultList.header().resizeSections(QHeaderView.ResizeToContents) 185 self.resultList.header().resizeSections(QHeaderView.ResizeToContents)
183 self.resultList.header().setStretchLastSection(True) 186 self.resultList.header().setStretchLastSection(True)
184 187
188 self.checkProgress.setVisible(False)
189
185 def on_buttonBox_clicked(self, button): 190 def on_buttonBox_clicked(self, button):
186 """ 191 """
187 Private slot called by a button of the button box clicked. 192 Private slot called by a button of the button box clicked.
188 193
189 @param button button that was clicked (QAbstractButton) 194 @param button button that was clicked (QAbstractButton)

eric ide

mercurial