OpenChemistry/avogadrolibs

Embedded Python console

Aperta

#581 aperta il 17 mag 2021

 (7 commenti) (0 reazioni) (0 assegnatari)C++ (232 fork)auto 404
enhancementhelp wantedpython

Metriche repository

Star
 (662 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

There are two aspects of this:

  • the GUI for the console / interpreter
  • the code to run Python commands inside Avogadro

The latter looks like it already works with pybind11: https://pybind11.readthedocs.io/en/stable/advanced/embedding.html

There's also a PySide example: https://code.qt.io/cgit/pyside/pyside-setup.git/tree/examples/scriptableapplication

Finally, there's a BSD-licensed abstraction layer that allows either PyQt or PySide code: https://github.com/mottosso/Qt.py

Guida contributor