def save(self):
"""
Funcrtion saves the execution times of commands to the file.
"""
i = 0
scores = []
while i < self.target_list.count():
scores.append(self.target_list.item(i).text())
i += 1
path = QtGui.QFileDialog.getExistingDirectory(None, 'Wybierz folder do zapisu pliku wyniki.txt',
'D:/Dane/Projekty/licencjat/')
with open(path + '/wyniki_Maya.txt', 'w') as file_:
for score in scores:
file_.write(score + '\n')
评论列表
文章目录