Good Evening,
I am running Ubuntu 15.04 and I have installed Qt Creator from the Ubuntu Software Centre. I am trying to run a small Python script to show a Window:
Code:
import sys
from PyQt5.QtWidgets import QApplication, QDialog
from ui_imagedialog import Ui_ImageDialog
app = QApplication(sys.argv)
window = QDialog()
ui = Ui_ImageDialog()
ui.setupUi(window)
window.show()
sys.exit(app.exec_())
but I get the following error:
Traceback (most recent call last):
File "ui.py", line 2, in <module>
from PyQt5.QtWidgets import QApplication, QDialog
ImportError: No module named PyQt5.QtWidgets
I am unsure why this is, please can you help?
Thanks,
Bookmarks