src/eric7/CondaInterface/CondaExecDialog.py

branch
eric7
changeset 10806
2f6df822e3b9
parent 10689
3ede487187f2
child 11090
f5f5f5803935
equal deleted inserted replaced
10805:c114e9476034 10806:2f6df822e3b9
10 import json 10 import json
11 11
12 from PyQt6.QtCore import QProcess, QTimer, pyqtSlot 12 from PyQt6.QtCore import QProcess, QTimer, pyqtSlot
13 from PyQt6.QtWidgets import QAbstractButton, QDialog, QDialogButtonBox 13 from PyQt6.QtWidgets import QAbstractButton, QDialog, QDialogButtonBox
14 14
15 from eric7 import Globals, Preferences 15 from eric7 import EricUtilities, Preferences
16 from eric7.EricWidgets import EricMessageBox 16 from eric7.EricWidgets import EricMessageBox
17 17
18 from .Ui_CondaExecDialog import Ui_CondaExecDialog 18 from .Ui_CondaExecDialog import Ui_CondaExecDialog
19 19
20 20
199 filesize = parts[1].strip() 199 filesize = parts[1].strip()
200 else: 200 else:
201 self.progressBar.setMaximum(jsonDict["maxval"]) 201 self.progressBar.setMaximum(jsonDict["maxval"])
202 self.progressBar.setValue(jsonDict["progress"]) 202 self.progressBar.setValue(jsonDict["progress"])
203 filename = jsonDict["fetch"].strip() 203 filename = jsonDict["fetch"].strip()
204 filesize = Globals.dataString(int(jsonDict["maxval"])) 204 filesize = EricUtilities.dataString(int(jsonDict["maxval"]))
205 205
206 self.progressLabel.setText( 206 self.progressLabel.setText(
207 self.tr("{0} (Size: {1})").format(filename, filesize) 207 self.tr("{0} (Size: {1})").format(filename, filesize)
208 ) 208 )
209 209

eric ide

mercurial