-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsPyktro_item.py
26 lines (22 loc) · 1.03 KB
/
sPyktro_item.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import sys, os
import numpy as np
from PySide6 import QtCore, QtGui, QtWidgets
from PySide6.QtCore import Qt, QSignalBlocker, QEvent
from PySide6.QtWidgets import *
from PySide6.QtGui import QIcon, QPixmap, QIntValidator, QDoubleValidator, QGuiApplication, QAction, QPen, QColor
from PySide6.QtQml import QQmlApplicationEngine
import pyqtgraph as pg
from pyqtgraph import PlotWidget
from sPyktro_raman import Raman_Spectra
from sPyktro_window import Ui_MainWindow
from sPyktro_misc import Raman_Spectra_Init_Dialog, Preferences_window, Line_window
class Spectra_item():
def __init__(self, spectra, line_color, line_width = 1, plot_bool = True, select_bool = False):
self.spectra = spectra
self.line_color = line_color
self.line_width = line_width
self.plot_bool = plot_bool
self.select_bool = select_bool
def copy(self):
return Spectra_item(self.spectra.copy(), QColor(self.line_color),
line_width = self.line_width, plot_bool = self.plot_bool, select_bool = self.select_bool)