|
ENLIGHTEN
Cross-platform desktop GUI for Wasatch Photonics spectrometers
|
This class encapsulates access to the host OS (Windows) copy-paste clipboard, allowing tabular data to be copied from ENLIGHTEN and pasted into other applications like Microsoft Excel. More...
Public Member Functions | |
| __init__ (self, ctl) | |
| copy_dataframe (self, df) | |
| copy_dict (self, d) | |
| copy_spectra (self, spectra) | |
| Copies the passed list-of-lists to the clipboard as column-ordered tab- delimited lines. | |
| copy_table_widget (self, table) | |
| Copies the contents of a QTableWidget to the clipboard as tab-delimited lines. | |
| raw_set_text (self, text) | |
Public Attributes | |
| ctl = ctl | |
This class encapsulates access to the host OS (Windows) copy-paste clipboard, allowing tabular data to be copied from ENLIGHTEN and pasted into other applications like Microsoft Excel.
This is NOT related to the "Measurement Capture Bar" along the left-hand edge of ENLIGHTEN's GUI, although we seem to be converging toward calling that "the ENLIGHTEN Clipboard."
| enlighten.ui.Clipboard.Clipboard.__init__ | ( | self, | |
| ctl ) |
| enlighten.ui.Clipboard.Clipboard.copy_dataframe | ( | self, | |
| df ) |
| enlighten.ui.Clipboard.Clipboard.copy_dict | ( | self, | |
| d ) |
| enlighten.ui.Clipboard.Clipboard.copy_spectra | ( | self, | |
| spectra ) |
Copies the passed list-of-lists to the clipboard as column-ordered tab- delimited lines.
| spectra | an array of arrays (e.g. [ [wavelengths], [spectrum], [trace_1], [trace_2] ] ) |
| enlighten.ui.Clipboard.Clipboard.copy_table_widget | ( | self, | |
| table ) |
Copies the contents of a QTableWidget to the clipboard as tab-delimited lines.
If a rectangular block (presumably one or more contiguous rows or columns) were selected in the GUI, then only the selected block is copied.
| enlighten.ui.Clipboard.Clipboard.raw_set_text | ( | self, | |
| text ) |
| enlighten.ui.Clipboard.Clipboard.ctl = ctl |