-
Notifications
You must be signed in to change notification settings - Fork 39
PyQt5
Alexander Zhukov edited this page Jul 13, 2018
·
14 revisions
You can use Qt5 based GUI widgets in your pyORBIT scripts. It will require matplotlib and PyQt5 installation.
-
Install Xcode, launch it, agree to all license agreements (! Important)
-
Run port
sudo port install python27 py27-matplotlib py27-pyqt5
-
Select python27
sudo port select --set python python27
-
Download a test file and make sure that it works with python
curl -o test-qt.py https://matplotlib.org/_downloads/embedding_in_qt_sgskip.py python test-qt.py
-
Rebuild pyORBIT, this is needed to compile it with correct python headers/libraries.
-
Try running the same test-qt.py with pyORBIT
$ORBIT_ROOT/bin/pyORBIT test-qt.py