src/eric7/CodeFormatting/BlackFormattingDialog.py

branch
eric7
changeset 9577
a0600d883f9e
parent 9473
3f23dbf37dbe
child 9624
b47dfa7a137d
equal deleted inserted replaced
9576:be9f8e7e42e0 9577:a0600d883f9e
71 @type QWidget (optional) 71 @type QWidget (optional)
72 """ 72 """
73 super().__init__(parent) 73 super().__init__(parent)
74 self.setupUi(self) 74 self.setupUi(self)
75 75
76 self.progressBar.setMaximum(len(filesList))
77
78 self.resultsList.header().setSortIndicator(1, Qt.SortOrder.AscendingOrder) 76 self.resultsList.header().setSortIndicator(1, Qt.SortOrder.AscendingOrder)
79 77
80 self.__config = copy.deepcopy(configuration) 78 self.__config = copy.deepcopy(configuration)
81 self.__config["__action__"] = action # needed by the workers 79 self.__config["__action__"] = action # needed by the workers
82 self.__project = project 80 self.__project = project
99 97
100 def __performAction(self): 98 def __performAction(self):
101 """ 99 """
102 Private method to execute the requested formatting action. 100 Private method to execute the requested formatting action.
103 """ 101 """
102 self.progressBar.setMaximum(len(self.__filesList))
104 self.progressBar.setValue(0) 103 self.progressBar.setValue(0)
105 self.progressBar.setVisible(True) 104 self.progressBar.setVisible(True)
106 105
107 self.statisticsGroup.setVisible(False) 106 self.statisticsGroup.setVisible(False)
108 self.__statistics = BlackStatistics() 107 self.__statistics = BlackStatistics()

eric ide

mercurial