Use PySide6 instead of PyQt6
This commit is contained in:
parent
4a2de1959c
commit
53b81d6ae4
@ -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
|
||||
|
||||
|
4
main.py
4
main.py
@ -3,8 +3,8 @@
|
||||
import os
|
||||
import sys
|
||||
|
||||
from PyQt6.QtCore import QThread
|
||||
from PyQt6.QtWidgets import QApplication
|
||||
from PySide6.QtCore import QThread
|
||||
from PySide6.QtWidgets import QApplication
|
||||
|
||||
from load_controller.gui import GUI
|
||||
from load_controller.load import Load
|
||||
|
Loading…
x
Reference in New Issue
Block a user