import fix

This commit is contained in:
Louis Mazin 2025-09-26 19:26:10 +02:00
parent 6b0450fb4b
commit 7b18566eae
2 changed files with 2 additions and 4 deletions

View File

@ -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)

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.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
@ -146,7 +146,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()