import fix
This commit is contained in:
parent
16675f359f
commit
18e546989d
@ -1,6 +1,6 @@
|
|||||||
from PyQt6.QtCore import Qt, QTimer
|
from PyQt6.QtCore import Qt, QTimer
|
||||||
from PyQt6.QtWidgets import QLabel
|
from PyQt6.QtWidgets import QLabel
|
||||||
from PyQt6.QtGui import QPainter, QPen
|
from PyQt6.QtGui import QPainter, QPen, QColor
|
||||||
from app.core.main_manager import MainManager
|
from app.core.main_manager import MainManager
|
||||||
import math
|
import math
|
||||||
|
|
||||||
@ -56,7 +56,6 @@ class LoadingSpinner(QLabel):
|
|||||||
painter.drawLine(int(start_x), int(start_y), int(end_x), int(end_y))
|
painter.drawLine(int(start_x), int(start_y), int(end_x), int(end_y))
|
||||||
|
|
||||||
def hex_to_qcolor(self, hex_color, alpha=255):
|
def hex_to_qcolor(self, hex_color, alpha=255):
|
||||||
from PyQt6.QtGui import QColor
|
|
||||||
hex_color = hex_color.lstrip('#')
|
hex_color = hex_color.lstrip('#')
|
||||||
r = int(hex_color[0:2], 16)
|
r = int(hex_color[0:2], 16)
|
||||||
g = int(hex_color[2:4], 16)
|
g = int(hex_color[2:4], 16)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
from PyQt6.QtWidgets import QWidget, QVBoxLayout, QLabel
|
from PyQt6.QtWidgets import QWidget, QVBoxLayout, QLabel, QApplication
|
||||||
from PyQt6.QtCore import Qt, pyqtSignal, QTimer
|
from PyQt6.QtCore import Qt, pyqtSignal, QTimer
|
||||||
from PyQt6.QtGui import QPixmap
|
from PyQt6.QtGui import QPixmap
|
||||||
from app.core.main_manager import MainManager
|
from app.core.main_manager import MainManager
|
||||||
@ -74,7 +74,6 @@ class SplashScreen(QWidget):
|
|||||||
def progress_callback(text):
|
def progress_callback(text):
|
||||||
self.progress_label.setText(text)
|
self.progress_label.setText(text)
|
||||||
# Traiter les événements pour que l'UI se mette à jour
|
# Traiter les événements pour que l'UI se mette à jour
|
||||||
from PyQt6.QtWidgets import QApplication
|
|
||||||
QApplication.processEvents()
|
QApplication.processEvents()
|
||||||
|
|
||||||
# Appeler la fonction de préchargement
|
# Appeler la fonction de préchargement
|
||||||
@ -146,7 +145,6 @@ class SplashScreen(QWidget):
|
|||||||
|
|
||||||
def center_on_screen(self):
|
def center_on_screen(self):
|
||||||
"""Centre la fenêtre sur l'écran"""
|
"""Centre la fenêtre sur l'écran"""
|
||||||
from PyQt6.QtWidgets import QApplication
|
|
||||||
screen = QApplication.primaryScreen()
|
screen = QApplication.primaryScreen()
|
||||||
screen_geometry = screen.geometry()
|
screen_geometry = screen.geometry()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user