47 |
47 |
48 def __init__(self, parent=None): |
48 def __init__(self, parent=None): |
49 """ |
49 """ |
50 Constructor |
50 Constructor |
51 |
51 |
52 @param parent parent |
52 @param parent reference to the user interface object |
53 @type QObject |
53 @type QObject |
54 """ |
54 """ |
55 super().__init__(parent) |
55 super().__init__(parent) |
|
56 |
|
57 self.__ui = parent |
56 |
58 |
57 # attributes for the network objects |
59 # attributes for the network objects |
58 self.__networkManager = QNetworkAccessManager(self) |
60 self.__networkManager = QNetworkAccessManager(self) |
59 self.__networkManager.proxyAuthenticationRequired.connect( |
61 self.__networkManager.proxyAuthenticationRequired.connect( |
60 proxyAuthenticationRequired) |
62 proxyAuthenticationRequired) |
302 "pyqt6", "pyqt6-sip", "pyqt6-webengine", "pyqt6-charts", |
304 "pyqt6", "pyqt6-sip", "pyqt6-webengine", "pyqt6-charts", |
303 "pyqt6-qscintilla", "pyqt6-qt6", "pyqt6-webengine-qt6", |
305 "pyqt6-qscintilla", "pyqt6-qt6", "pyqt6-webengine-qt6", |
304 "pyqt6-charts-qt6" |
306 "pyqt6-charts-qt6" |
305 ] |
307 ] |
306 ] |
308 ] |
307 |
309 return bool(pyqtPackages) |
308 abort = ( |
|
309 not EricMessageBox.yesNo( |
|
310 None, |
|
311 self.tr("Upgrade Packages"), |
|
312 self.tr( |
|
313 """You are trying to upgrade PyQt packages. This might""" |
|
314 """ not work for the current instance of Python ({0}).""" |
|
315 """ Do you want to continue?""").format(sys.executable), |
|
316 icon=EricMessageBox.Critical) |
|
317 if bool(pyqtPackages) else |
|
318 False |
|
319 ) |
|
320 |
|
321 return abort |
|
322 |
310 |
323 def upgradePackages(self, packages, venvName, userSite=False): |
311 def upgradePackages(self, packages, venvName, userSite=False): |
324 """ |
312 """ |
325 Public method to upgrade the given list of packages. |
313 Public method to upgrade the given list of packages. |
326 |
314 |