[PyQt] Using ui files in PyQt
mike at pythonlibrary.org
Fri Apr 28 14:25:19 BST 2017
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?
> 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.
Books: Python 101 <https://gum.co/py101>, Python 201: Intermediate Python
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the PyQt