diff feedworm.py @ 251:3ce39af93e77 pyqt5

Update to PyQt5
author Dirk Olmes <dirk@xanthippe.ping.de>
date Sun, 22 Oct 2017 03:40:44 +0200
parents 7c719c4f5655
children
line wrap: on
line diff
--- a/feedworm.py	Sat Oct 21 10:31:02 2017 +0200
+++ b/feedworm.py	Sun Oct 22 03:40:44 2017 +0200
@@ -6,8 +6,9 @@
 sip.setapi('QVariant', 2)
 
 from MainWindow import MainWindow
-from PyQt4 import QtGui
-from PyQt4.QtNetwork import QNetworkProxy
+from PyQt5 import QtGui
+from PyQt5.QtWidgets import QApplication
+from PyQt5.QtNetwork import QNetworkProxy
 import BackendFactory
 import logging
 import sys
@@ -35,7 +36,7 @@
     preferences = backend.preferences()
     setupProxy(preferences)
 
-    app = QtGui.QApplication(sys.argv)
+    app = QApplication(sys.argv)
     mainWindow = MainWindow(backend)
 
     maximized = preferences.startMaximized()