|
|
@ -2049,7 +2049,7 @@ void MainWindow::installPython() |
|
|
|
setCursor(QCursor(Qt::WaitCursor)); |
|
|
|
setCursor(QCursor(Qt::WaitCursor)); |
|
|
|
// Download python
|
|
|
|
// Download python
|
|
|
|
const QString installerURL = ((QSysInfo::windowsVersion() >= QSysInfo::WV_VISTA) |
|
|
|
const QString installerURL = ((QSysInfo::windowsVersion() >= QSysInfo::WV_VISTA) |
|
|
|
? "https://www.python.org/ftp/python/3.5.2/python-3.5.2.exe" |
|
|
|
? "https://www.python.org/ftp/python/3.6.6/python-3.6.6.exe" |
|
|
|
: "https://www.python.org/ftp/python/3.4.4/python-3.4.4.msi"); |
|
|
|
: "https://www.python.org/ftp/python/3.4.4/python-3.4.4.msi"); |
|
|
|
Net::DownloadHandler *handler = Net::DownloadManager::instance()->download( |
|
|
|
Net::DownloadHandler *handler = Net::DownloadManager::instance()->download( |
|
|
|
Net::DownloadRequest(installerURL).saveToFile(true)); |
|
|
|
Net::DownloadRequest(installerURL).saveToFile(true)); |
|
|
|