Skip to content
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.

Installing on Mac

  1. Install Xcode, launch it, agree to all license agreements (! Important)

  2. Run port

    sudo port install python27 py27-matplotlib py27-pyqt5
  3. Select python27

    sudo port select --set python python27
  4. 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
  5. Rebuild pyORBIT, this is needed to compile it with correct python headers/libraries.

  6. Try running the same test-qt.py with pyORBIT

    $ORBIT_ROOT/bin/pyORBIT test-qt.py

Clone this wiki locally