import fix

This commit is contained in:
Louis Mazin 2025-09-26 19:27:29 +02:00
parent 16675f359f
commit 18e546989d
2 changed files with 2 additions and 5 deletions

View File

@ -1,6 +1,6 @@
from PyQt6.QtCore import Qt, QTimer
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
import math
@ -56,7 +56,6 @@ class LoadingSpinner(QLabel):
painter.drawLine(int(start_x), int(start_y), int(end_x), int(end_y))
def hex_to_qcolor(self, hex_color, alpha=255):
from PyQt6.QtGui import QColor
hex_color = hex_color.lstrip('#')
r = int(hex_color[0:2], 16)
g = int(hex_color[2:4], 16)

View File

@ -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.QtGui import QPixmap
from app.core.main_manager import MainManager
@ -74,7 +74,6 @@ class SplashScreen(QWidget):
def progress_callback(text):
self.progress_label.setText(text)
# Traiter les événements pour que l'UI se mette à jour
from PyQt6.QtWidgets import QApplication
QApplication.processEvents()
# Appeler la fonction de préchargement
@ -146,7 +145,6 @@ class SplashScreen(QWidget):
def center_on_screen(self):
"""Centre la fenêtre sur l'écran"""
from PyQt6.QtWidgets import QApplication
screen = QApplication.primaryScreen()
screen_geometry = screen.geometry()