Skip to content Skip to sidebar Skip to footer

Pyuic4 Import Error

I'm using PyQt-Py3.3-x64-gbl-4.9.5-1 package on a Windows7 64bit machine. I'm just trying to get start with PyQt so just created a simply window but when I execute the command to

Solution 1:

Usage from the command line is(from my machine):

C:\Python27\Lib\site-packages\PyQt4>pyuic4.bat inputfile.ui > output.py

After the above step add these lines in your output.py file

if __name__=='__main__':
    import sys
    app=QtGui.QApplication(sys.argv)
    Form=QtGui.QWidget()
    ui=Ui_Form()
    ui.setupUi(Form)
    Form.show()
    sys.exit(app.exec_())

Post a Comment for "Pyuic4 Import Error"