Article 5S4X8 Can't run PyQt application on 14.2

Can't run PyQt application on 14.2

by
usr345
from LinuxQuestions.org on (#5S4X8)
I compiled and installed PyQt from here: https://mirrors.slackware.com/slackw.../source/l/PyQt.

But when I try to run a simple application:

Code:import sys
from PyQt4 import QtCore, QtGui

from test_ui import Ui_Form

class MyForm(QtGui.QMainWindow):
def __init__(self, parent=None):
QtGui.QWidget.__init__(self, parent)
self.ui = Ui_Form()
self.ui.setupUi(self)

if __name__ == "__main__":
app = QtGui.QApplication(sys.argv)
myapp = MyForm()
myapp.show()
sys.exit(app.exec_())Code:$ python3 ./test1.pyIt gives an error: ModuleNotFoundError: No module named 'PyQt4'

Maybe, I need to change some configs?latest?d=yIl2AUoC8zA latest?i=cuazLI9VRFs:Ki9qgNobKwc:F7zBnMy latest?i=cuazLI9VRFs:Ki9qgNobKwc:V_sGLiP latest?d=qj6IDK7rITs latest?i=cuazLI9VRFs:Ki9qgNobKwc:gIN9vFw
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments