[PyQt] Using ui files in PyQt
Mike Driscoll
mike at pythonlibrary.org
Fri Apr 28 14:25:19 BST 2017
Hi Michael,
On Thu, Apr 27, 2017 at 9:58 PM, michael h <michaelkenth at gmail.com> wrote:
>
>> 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.
>
Nested may be the wrong term. But I have seen multiple examples where we
are creating part of a page in one ui file and the rest of the page in a
separate one. I wasn't sure how to phrase that.
Thanks,
Mike
-----------------
Mike Driscoll
Blog: http://blog.pythonlibrary.org
Books: Python 101 <https://gum.co/py101>, Python 201: Intermediate Python
<https://gum.co/py201>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20170428/e717e601/attachment.html>
More information about the PyQt
mailing list