Обновить интерфейс: перейти на PyQt6 и исправить выравнивание заголовка

This commit is contained in:
kromskii2 committed 2025-01-13 16:32:37 +07:00
1 parent dc1d7be0f4
commit 414a16e5fd
1 file changed
+4 -4
+4 -4
View File
@@ -1,9 +1,9 @@
from PyQt5.QtWidgets import (
from PyQt6.QtWidgets import (
QApplication, QVBoxLayout, QHBoxLayout, QPushButton,
QCheckBox, QLabel, QWidget, QFileDialog, QStatusBar
)
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QIcon
from PyQt6.QtCore import Qt
from PyQt6.QtGui import QIcon
import sys
class MainWindow(QWidget):
@@ -42,7 +42,7 @@ class MainWindow(QWidget):
# Title
title = QLabel("Шифрование файлов")
title.setStyleSheet("font-size: 18px; font-weight: bold; color: #333;")
title.setAlignment(Qt.AlignCenter)
title.setAlignment(Qt.AlignmentFlag.AlignCenter)
main_layout.addWidget(title)
# Buttons layout