pip install
it into your virtualenv; instead, youmust use the system version of it. With Homebrew, I had to add a .pth
file tomy virtualenv:.ui
files to represent the GUI. These files are just XMLfiles with information about the window layout. We’d like to be able to somehowaccess these files from Python and render them with Qt. Below is an example ofsuch a file, which you might want to use to follow along.pyqt-distutils
. This package lets youbuild your .ui
files into Python classes as part of setup.py
. The idea is tokeep the .ui
files alongside their built .py
files..ui
files to be built. Update pyuic.json
to havethis entry in files
:.ui
files..ui
files. This is thesuggestion from the documentation, to be added tosetup.py
: https://shirtbrown.weebly.com/blog/google-hangouts-free-download-for-mac.build_ui
command:mainwindow_ui.py
file. Since this isgenerated code, you may want to add it to your .gitignore
or similar..ui
files are built, you need to import the created classes into yourown code to use them. Put this content into myapp/__main__.py
:.ui
file for us, so that we can rebuild it and have it appear in our app.qmake
executable that Homebrew installed, then I updated thedefault Qt kit to use that Qt version.File > Open File or Project.
, and select your .ui
file. (Do not try to create a project of any sort.) It should appear in QtCreator for you to edit and save. That’s it!python3-pyqt5