You are not logged in.

1

Sunday, September 10th 2017, 4:16pm

convert pyqt4 to pyqt5

Hello
is it possible to convert python file used pyqt4 to pyqt5 ?
and how please
i tried to do that manually but i found many different examples


from pymaxwell import *
import sys
import os
from PyQt4
import QtGui, uicimport render_views_V3
uifile = 'F:/maxwell tool project/v3/render_views_V3.ui'

Ui_MainWindow, QtBaseClass = uic.loadUiType(uifile)
class MyApp(QtGui.QMainWindow, render_views_V3.Ui_MainWindow):
def __init__(self):
QtGui.QMainWindow.__init__(self)
Ui_MainWindow.__init__(self)
self.setupUi(self)

#########################################################################################
functions
#########################################################################################

if __name__ == "__main__":
app = QtGui.QApplication(sys.argv)
style = QtGui.QApplication.setStyle('Plastique')
window = MyApp()
window.show()
sys.exit(app.exec_())[/code]

Used tags

PyQt4, PyQt5