File: xrfembedpyqt.rst

package info (click to toggle)
pymca 5.8.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 44,392 kB
  • sloc: python: 155,456; ansic: 15,843; makefile: 116; sh: 73; xml: 55
file content (15 lines) | stat: -rw-r--r-- 532 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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()