I have my UI from QT Designer and I run it with a code in PyCharm successfully:
from PySide.QtGui import * from UI import createScene_Main class CreateScene(QWidget, createScene_Main.Ui_CreateScene): def __init__(self): super(CreateScene, self).__init__() # SETUP UI self.setupUi(self) app = QApplication() CS = CreateScene() CS.show() app.exec_()
But if I run this code in Houdini (changing PySide to PySide2 in this code and in UI file as well) I get an error: NameError:
name 'QWidget' is not defined. How can I fix it?
Also. I cant Install PySide2 on my Windows PC. Running in command prompt
pip install PySide2 raises an error:
Could not find a version that satisfies the requirement PySide2 (from versions: ) No matching distribution found for PySide2