diff options
Diffstat (limited to 'doc/source/recipes/xrfembedpyqt.rst')
-rw-r--r-- | doc/source/recipes/xrfembedpyqt.rst | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/source/recipes/xrfembedpyqt.rst b/doc/source/recipes/xrfembedpyqt.rst new file mode 100644 index 0000000..ddc5166 --- /dev/null +++ b/doc/source/recipes/xrfembedpyqt.rst @@ -0,0 +1,15 @@ +Embedding PyMca XRF fitting +=========================== + +Besides providing ready-to-use applications, PyMca is very modular and it allows to be used as a library. + +Let's say you have your own way of displaying your data into a PyQt5 (or PyQt4, PySide or PySide2) +application. All you need to do to provide XRF fitting capabilities to it requires 4 lines of code. + +.. code-block:: python + + from PyMca5.PyMca import McaAdvancedFit + widget = McaAdvancedFit.McaAdvancedFit() + widget.setData(channels, counts) + widget.show() + |