From 414a16e5fdbd51fc319a884b6d1defa8634e3c95 Mon Sep 17 00:00:00 2001 From: kromskii2 Date: Mon, 13 Jan 2025 16:32:37 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20=D0=B8=D0=BD=D1=82=D0=B5=D1=80=D1=84=D0=B5=D0=B9=D1=81?= =?UTF-8?q?:=20=D0=BF=D0=B5=D1=80=D0=B5=D0=B9=D1=82=D0=B8=20=D0=BD=D0=B0?= =?UTF-8?q?=20PyQt6=20=D0=B8=20=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D0=B2=D1=8B=D1=80=D0=B0=D0=B2=D0=BD=D0=B8=D0=B2?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D0=B5=20=D0=B7=D0=B0=D0=B3=D0=BE=D0=BB=D0=BE?= =?UTF-8?q?=D0=B2=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- interface.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/interface.py b/interface.py index a2a41b4..f74cac8 100644 --- a/interface.py +++ b/interface.py @@ -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 @@ -52,7 +52,7 @@ class MainWindow(QWidget): self.encrypt_button = QPushButton("🔒 Зашифровать") self.encrypt_folder_button = QPushButton("📁 Зашифровать папку") self.decrypt_button = QPushButton("🔓 Дешифровать") - + button_layout.addWidget(self.encrypt_button) button_layout.addWidget(self.encrypt_folder_button) button_layout.addWidget(self.decrypt_button)