diff --git a/app/ui/widgets/loading_spinner.py b/app/ui/widgets/loading_spinner.py index dde26d6..b224347 100644 --- a/app/ui/widgets/loading_spinner.py +++ b/app/ui/widgets/loading_spinner.py @@ -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) diff --git a/app/ui/windows/splash_screen.py b/app/ui/windows/splash_screen.py index bd38e53..e61fcd9 100644 --- a/app/ui/windows/splash_screen.py +++ b/app/ui/windows/splash_screen.py @@ -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 @@ -146,7 +146,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()