[PyQt] uic compilUi error
Phil Thompson
phil at riverbankcomputing.com
Sun Mar 18 16:02:31 GMT 2018
On 18 Mar 2018, at 3:52 pm, Keith Lostracco <keith at intentdev.io> wrote:
>
> Ah yeah my bad. Here is all the info.
>
> Windows 10
> Python 3.6
> PyQt 5.10.1
> Qt Creator 4.5.2
>
>
> Based on Qt 5.10.1
>
>
> uic invoke statement:
>
> from PyQt5 import uic
>
> uiFile = 'QtCreator/signalProc/mainwindow.ui'
> pyFile = 'mainwindow.py'
>
> uic.compileUi(uiFile, pyFile)
As it says in...
http://pyqt.sourceforge.net/Docs/PyQt5/designer.html#PyQt5.uic.compileUi
'pyFile' is a file-like object and not the name of a file.
Phil
More information about the PyQt
mailing list