[PyQt] Using ui files in PyQt

michael h michaelkenth at gmail.com
Fri Apr 28 03:58:45 BST 2017

> I am having trouble finding good examples of doing this though. One recent
> example that we did was where we created a wizard using over 15 ui files.
> How does one load up a series of ui files for this sort of thing in PyQt?
> What do you need to do if the ui files need to be nested?
> Thanks,
> Mike
You can load ui files at runtime using PyQt5.uic.loadUi or
PyQt5.uic.loadUiType which can be nice for prototyping. (I prefer to
generate the python modules with pyuic before deploying though.)

Not sure what you mean by nested ui files.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20170427/4ad8d241/attachment-0001.html>

More information about the PyQt mailing list