Use PySide6 instead of PyQt6
This commit is contained in:
		@ -3,8 +3,8 @@ import csv
 | 
			
		||||
import time
 | 
			
		||||
from typing import cast
 | 
			
		||||
 | 
			
		||||
from PyQt6.QtCore import QTimer
 | 
			
		||||
from PyQt6.QtWidgets import (
 | 
			
		||||
from PySide6.QtCore import QTimer
 | 
			
		||||
from PySide6.QtWidgets import (
 | 
			
		||||
    QWidget,
 | 
			
		||||
    QGridLayout,
 | 
			
		||||
    QHBoxLayout,
 | 
			
		||||
@ -13,7 +13,7 @@ from PyQt6.QtWidgets import (
 | 
			
		||||
    QPushButton,
 | 
			
		||||
    QFileDialog,
 | 
			
		||||
)
 | 
			
		||||
from PyQt6.QtCharts import QChart, QChartView, QLineSeries
 | 
			
		||||
from PySide6.QtCharts import QChart, QChartView, QLineSeries
 | 
			
		||||
 | 
			
		||||
from .profile_handler import ProfileHandler, ProfileState
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -1,7 +1,7 @@
 | 
			
		||||
import serial
 | 
			
		||||
import time
 | 
			
		||||
 | 
			
		||||
from PyQt6.QtCore import QObject
 | 
			
		||||
from PySide6.QtCore import QObject
 | 
			
		||||
 | 
			
		||||
from .profile_handler import ProfileHandler
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -2,7 +2,7 @@ import enum
 | 
			
		||||
import csv
 | 
			
		||||
import time
 | 
			
		||||
 | 
			
		||||
from PyQt6.QtCore import QObject, pyqtSignal, QTimer
 | 
			
		||||
from PySide6.QtCore import QObject, Signal, QTimer
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class ProfileState(enum.Enum):
 | 
			
		||||
@ -12,8 +12,8 @@ class ProfileState(enum.Enum):
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class ProfileHandler(QObject):
 | 
			
		||||
    current_changed = pyqtSignal(float)
 | 
			
		||||
    finished = pyqtSignal()
 | 
			
		||||
    current_changed = Signal(float)
 | 
			
		||||
    finished = Signal()
 | 
			
		||||
 | 
			
		||||
    state: ProfileState
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user