From 87d875fadcae2fd6a3fece7b9bb995ec3847dab9 Mon Sep 17 00:00:00 2001 From: Guilherme Costa Date: Wed, 4 Feb 2026 12:01:03 +0000 Subject: [PATCH] Fix incorrect file removal --- BlocksScreen/lib/ui/connectionWindow.ui | 938 +++++ BlocksScreen/lib/ui/connectionWindow_ui.py | 338 ++ BlocksScreen/lib/ui/wifiConnectivityWindow.ui | 3184 ----------------- .../lib/ui/wifiConnectivityWindow_ui.py | 1301 ------- 4 files changed, 1276 insertions(+), 4485 deletions(-) create mode 100644 BlocksScreen/lib/ui/connectionWindow.ui create mode 100644 BlocksScreen/lib/ui/connectionWindow_ui.py delete mode 100644 BlocksScreen/lib/ui/wifiConnectivityWindow.ui delete mode 100644 BlocksScreen/lib/ui/wifiConnectivityWindow_ui.py diff --git a/BlocksScreen/lib/ui/connectionWindow.ui b/BlocksScreen/lib/ui/connectionWindow.ui new file mode 100644 index 00000000..f2bd4899 --- /dev/null +++ b/BlocksScreen/lib/ui/connectionWindow.ui @@ -0,0 +1,938 @@ + + + ConnectivityForm + + + Qt::WindowModal + + + + 0 + 0 + 800 + 480 + + + + + 0 + 0 + + + + + 800 + 480 + + + + + 800 + 480 + + + + Form + + + 1.000000000000000 + + + false + + + #ConnectivityForm{ +background-image: url(:/background/media/1st_background.png); +} + + + + + + + + 10 + 380 + 780 + 124 + + + + + 0 + 0 + + + + + 780 + 124 + + + + + 780 + 150 + + + + + 800 + 80 + + + + + + + + + + + + PreferAntialias + + + + true + + + false + + + + + + QFrame::NoFrame + + + QFrame::Plain + + + 0 + + + + 0 + + + 0 + + + 5 + + + 0 + + + 0 + + + + + + 0 + 0 + + + + + 100 + 80 + + + + + 100 + 80 + + + + + 160 + 80 + + + + + + + + + 66 + 66 + 66 + + + + + + + 66 + 66 + 66 + + + + + + + 66 + 66 + 66 + + + + + + + + + 66 + 66 + 66 + + + + + + + 66 + 66 + 66 + + + + + + + 66 + 66 + 66 + + + + + + + + + 66 + 66 + 66 + + + + + + + 66 + 66 + 66 + + + + + + + 66 + 66 + 66 + + + + + + + + + false + PreferAntialias + false + + + + BlankCursor + + + true + + + Qt::NoFocus + + + Qt::NoContextMenu + + + Qt::LeftToRight + + + false + + + + + + Restart Klipper + + + + :/system_icons/media/btn_icons/restart_klipper.svg + + + + + 46 + 42 + + + + false + + + false + + + false + + + 0 + + + 0 + + + false + + + true + + + :/system/media/btn_icons/restart_klipper.svg + + + true + + + bottom + + + + 255 + 255 + 255 + + + + + + + + + 0 + 0 + + + + + 100 + 80 + + + + + 100 + 80 + + + + + 80 + 80 + + + + BlankCursor + + + true + + + Qt::NoFocus + + + Qt::NoContextMenu + + + false + + + Reboot + + + + :/system_icons/media/btn_icons/firmware_restart.svg:/system_icons/media/btn_icons/firmware_restart.svg + + + false + + + false + + + true + + + :/system/media/btn_icons/reboot.svg + + + bottom + + + + 255 + 255 + 255 + + + + true + + + + + + + + 0 + 0 + + + + + 100 + 80 + + + + + 100 + 80 + + + + + 160 + 80 + + + + BlankCursor + + + true + + + Qt::NoFocus + + + Qt::NoContextMenu + + + false + + + Firmware Restart + + + + :/system_icons/media/btn_icons/firmware_restart.svg:/system_icons/media/btn_icons/firmware_restart.svg + + + false + + + false + + + true + + + :/system/media/btn_icons/restart_firmware.svg + + + true + + + bottom + + + + 255 + 255 + 255 + + + + + + + + + 0 + 0 + + + + + 100 + 80 + + + + + 100 + 80 + + + + + 80 + 80 + + + + + + + + + + + + 13 + + + + true + + + Qt::ClickFocus + + + false + + + + + + Retry + + + + :/system_icons/media/btn_icons/retry_connection.svg:/system_icons/media/btn_icons/retry_connection.svg + + + + 16 + 16 + + + + false + + + 0 + + + 0 + + + false + + + false + + + true + + + bottom + + + :/system/media/btn_icons/restart_printer.svg + + + + 255 + 255 + 255 + + + + true + + + + + + + + 0 + 0 + + + + + 100 + 80 + + + + + 100 + 80 + + + + + 80 + 80 + + + + BlankCursor + + + true + + + Qt::NoFocus + + + Qt::NoContextMenu + + + false + + + Update page + + + + :/system_icons/media/btn_icons/firmware_restart.svg:/system_icons/media/btn_icons/firmware_restart.svg + + + false + + + false + + + true + + + :/system/media/btn_icons/update-software-icon.svg + + + bottom + + + + 255 + 255 + 255 + + + + true + + + + + + + + 0 + 0 + + + + + 100 + 80 + + + + + 100 + 80 + + + + + 80 + 80 + + + + true + + + Qt::NoFocus + + + Qt::NoContextMenu + + + false + + + Wifi Settings + + + + :/system_icons/media/btn_icons/retry_connection.svg:/system_icons/media/btn_icons/retry_connection.svg + + + false + + + false + + + true + + + system_control_btn + + + :/network/media/btn_icons/wifi_config.svg + + + true + + + bottom + + + + + + + + + 0 + 0 + 800 + 380 + + + + + 0 + 0 + + + + + 800 + 380 + + + + + 800 + 380 + + + + false + + + + + + QFrame::NoFrame + + + QFrame::Raised + + + + + + Qt::Vertical + + + QSizePolicy::Minimum + + + + 775 + 70 + + + + + + + + + 0 + 0 + + + + + 800 + 380 + + + + + + + + + 255 + 255 + 255 + + + + + + + 255 + 255 + 255 + + + + + + + 255 + 255 + 255 + + + + + + + + + 255 + 255 + 255 + + + + + + + 255 + 255 + 255 + + + + + + + 255 + 255 + 255 + + + + + + + + + 255 + 255 + 255 + + + + + + + 255 + 255 + 255 + + + + + + + 255 + 255 + 255 + + + + + + + + + Momcake + 17 + 75 + false + true + + + + color:white + + + + + + Qt::AutoText + + + false + + + Qt::AlignCenter + + + true + + + Qt::NoTextInteraction + + + + + + + + + IconButton + QPushButton +
lib.utils.icon_button
+
+ + BlocksCustomFrame + QFrame +
lib.utils.blocks_frame
+ 1 +
+
+ + + + + + + +
diff --git a/BlocksScreen/lib/ui/connectionWindow_ui.py b/BlocksScreen/lib/ui/connectionWindow_ui.py new file mode 100644 index 00000000..772dc227 --- /dev/null +++ b/BlocksScreen/lib/ui/connectionWindow_ui.py @@ -0,0 +1,338 @@ +# Form implementation generated from reading ui file '/home/levi/BlocksScreen/BlocksScreen/lib/ui/connectionWindow.ui' +# +# Created by: PyQt6 UI code generator 6.7.1 +# +# WARNING: Any manual changes made to this file will be lost when pyuic6 is +# run again. Do not edit this file unless you know what you are doing. + + +from PyQt6 import QtCore, QtGui, QtWidgets + + +class Ui_ConnectivityForm(object): + def setupUi(self, ConnectivityForm): + ConnectivityForm.setObjectName("ConnectivityForm") + ConnectivityForm.setWindowModality(QtCore.Qt.WindowModality.WindowModal) + ConnectivityForm.resize(800, 480) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(ConnectivityForm.sizePolicy().hasHeightForWidth()) + ConnectivityForm.setSizePolicy(sizePolicy) + ConnectivityForm.setMinimumSize(QtCore.QSize(800, 480)) + ConnectivityForm.setMaximumSize(QtCore.QSize(800, 480)) + ConnectivityForm.setWindowOpacity(1.0) + ConnectivityForm.setAutoFillBackground(False) + ConnectivityForm.setStyleSheet("#ConnectivityForm{\n" +"background-image: url(:/background/media/1st_background.png);\n" +"}") + ConnectivityForm.setProperty("class", "") + self.cw_buttonFrame = BlocksCustomFrame(parent=ConnectivityForm) + self.cw_buttonFrame.setGeometry(QtCore.QRect(10, 380, 780, 124)) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Preferred) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.cw_buttonFrame.sizePolicy().hasHeightForWidth()) + self.cw_buttonFrame.setSizePolicy(sizePolicy) + self.cw_buttonFrame.setMinimumSize(QtCore.QSize(780, 124)) + self.cw_buttonFrame.setMaximumSize(QtCore.QSize(780, 150)) + self.cw_buttonFrame.setBaseSize(QtCore.QSize(800, 80)) + palette = QtGui.QPalette() + self.cw_buttonFrame.setPalette(palette) + font = QtGui.QFont() + font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias) + self.cw_buttonFrame.setFont(font) + self.cw_buttonFrame.setTabletTracking(True) + self.cw_buttonFrame.setAutoFillBackground(False) + self.cw_buttonFrame.setStyleSheet("") + self.cw_buttonFrame.setFrameShape(QtWidgets.QFrame.Shape.NoFrame) + self.cw_buttonFrame.setFrameShadow(QtWidgets.QFrame.Shadow.Plain) + self.cw_buttonFrame.setLineWidth(0) + self.cw_buttonFrame.setObjectName("cw_buttonFrame") + self.horizontalLayout = QtWidgets.QHBoxLayout(self.cw_buttonFrame) + self.horizontalLayout.setContentsMargins(0, 5, 0, 0) + self.horizontalLayout.setSpacing(0) + self.horizontalLayout.setObjectName("horizontalLayout") + self.RestartKlipperButton = IconButton(parent=self.cw_buttonFrame) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.RestartKlipperButton.sizePolicy().hasHeightForWidth()) + self.RestartKlipperButton.setSizePolicy(sizePolicy) + self.RestartKlipperButton.setMinimumSize(QtCore.QSize(100, 80)) + self.RestartKlipperButton.setMaximumSize(QtCore.QSize(100, 80)) + self.RestartKlipperButton.setBaseSize(QtCore.QSize(160, 80)) + palette = QtGui.QPalette() + brush = QtGui.QBrush(QtGui.QColor(66, 66, 66)) + brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) + palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.WindowText, brush) + brush = QtGui.QBrush(QtGui.QColor(66, 66, 66)) + brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) + palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Text, brush) + brush = QtGui.QBrush(QtGui.QColor(66, 66, 66)) + brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) + palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.ButtonText, brush) + brush = QtGui.QBrush(QtGui.QColor(66, 66, 66)) + brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) + palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.WindowText, brush) + brush = QtGui.QBrush(QtGui.QColor(66, 66, 66)) + brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) + palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Text, brush) + brush = QtGui.QBrush(QtGui.QColor(66, 66, 66)) + brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) + palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.ButtonText, brush) + brush = QtGui.QBrush(QtGui.QColor(66, 66, 66)) + brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) + palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.WindowText, brush) + brush = QtGui.QBrush(QtGui.QColor(66, 66, 66)) + brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) + palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Text, brush) + brush = QtGui.QBrush(QtGui.QColor(66, 66, 66)) + brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) + palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.ButtonText, brush) + self.RestartKlipperButton.setPalette(palette) + font = QtGui.QFont() + font.setStrikeOut(False) + font.setKerning(False) + font.setStyleStrategy(QtGui.QFont.StyleStrategy.PreferAntialias) + self.RestartKlipperButton.setFont(font) + self.RestartKlipperButton.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.BlankCursor)) + self.RestartKlipperButton.setTabletTracking(True) + self.RestartKlipperButton.setFocusPolicy(QtCore.Qt.FocusPolicy.NoFocus) + self.RestartKlipperButton.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu) + self.RestartKlipperButton.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight) + self.RestartKlipperButton.setAutoFillBackground(False) + self.RestartKlipperButton.setStyleSheet("") + icon = QtGui.QIcon() + icon.addPixmap(QtGui.QPixmap(":/system_icons/media/btn_icons/restart_klipper.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.On) + self.RestartKlipperButton.setIcon(icon) + self.RestartKlipperButton.setIconSize(QtCore.QSize(46, 42)) + self.RestartKlipperButton.setCheckable(False) + self.RestartKlipperButton.setAutoRepeat(False) + self.RestartKlipperButton.setAutoExclusive(False) + self.RestartKlipperButton.setAutoRepeatDelay(0) + self.RestartKlipperButton.setAutoRepeatInterval(0) + self.RestartKlipperButton.setAutoDefault(False) + self.RestartKlipperButton.setFlat(True) + self.RestartKlipperButton.setProperty("icon_pixmap", QtGui.QPixmap(":/system/media/btn_icons/restart_klipper.svg")) + self.RestartKlipperButton.setProperty("has_text", True) + self.RestartKlipperButton.setProperty("text_color", QtGui.QColor(255, 255, 255)) + self.RestartKlipperButton.setObjectName("RestartKlipperButton") + self.horizontalLayout.addWidget(self.RestartKlipperButton, 0, QtCore.Qt.AlignmentFlag.AlignHCenter|QtCore.Qt.AlignmentFlag.AlignTop) + self.RebootSystemButton = IconButton(parent=self.cw_buttonFrame) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.RebootSystemButton.sizePolicy().hasHeightForWidth()) + self.RebootSystemButton.setSizePolicy(sizePolicy) + self.RebootSystemButton.setMinimumSize(QtCore.QSize(100, 80)) + self.RebootSystemButton.setMaximumSize(QtCore.QSize(100, 80)) + self.RebootSystemButton.setBaseSize(QtCore.QSize(80, 80)) + self.RebootSystemButton.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.BlankCursor)) + self.RebootSystemButton.setTabletTracking(True) + self.RebootSystemButton.setFocusPolicy(QtCore.Qt.FocusPolicy.NoFocus) + self.RebootSystemButton.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu) + self.RebootSystemButton.setAutoFillBackground(False) + icon1 = QtGui.QIcon() + icon1.addPixmap(QtGui.QPixmap(":/system_icons/media/btn_icons/firmware_restart.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off) + self.RebootSystemButton.setIcon(icon1) + self.RebootSystemButton.setAutoDefault(False) + self.RebootSystemButton.setDefault(False) + self.RebootSystemButton.setFlat(True) + self.RebootSystemButton.setProperty("icon_pixmap", QtGui.QPixmap(":/system/media/btn_icons/reboot.svg")) + self.RebootSystemButton.setProperty("text_color", QtGui.QColor(255, 255, 255)) + self.RebootSystemButton.setProperty("has_text", True) + self.RebootSystemButton.setObjectName("RebootSystemButton") + self.horizontalLayout.addWidget(self.RebootSystemButton, 0, QtCore.Qt.AlignmentFlag.AlignHCenter|QtCore.Qt.AlignmentFlag.AlignTop) + self.FirmwareRestartButton = IconButton(parent=self.cw_buttonFrame) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.FirmwareRestartButton.sizePolicy().hasHeightForWidth()) + self.FirmwareRestartButton.setSizePolicy(sizePolicy) + self.FirmwareRestartButton.setMinimumSize(QtCore.QSize(100, 80)) + self.FirmwareRestartButton.setMaximumSize(QtCore.QSize(100, 80)) + self.FirmwareRestartButton.setBaseSize(QtCore.QSize(160, 80)) + self.FirmwareRestartButton.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.BlankCursor)) + self.FirmwareRestartButton.setTabletTracking(True) + self.FirmwareRestartButton.setFocusPolicy(QtCore.Qt.FocusPolicy.NoFocus) + self.FirmwareRestartButton.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu) + self.FirmwareRestartButton.setAutoFillBackground(False) + self.FirmwareRestartButton.setIcon(icon1) + self.FirmwareRestartButton.setAutoDefault(False) + self.FirmwareRestartButton.setDefault(False) + self.FirmwareRestartButton.setFlat(True) + self.FirmwareRestartButton.setProperty("icon_pixmap", QtGui.QPixmap(":/system/media/btn_icons/restart_firmware.svg")) + self.FirmwareRestartButton.setProperty("has_text", True) + self.FirmwareRestartButton.setProperty("text_color", QtGui.QColor(255, 255, 255)) + self.FirmwareRestartButton.setObjectName("FirmwareRestartButton") + self.horizontalLayout.addWidget(self.FirmwareRestartButton, 0, QtCore.Qt.AlignmentFlag.AlignHCenter|QtCore.Qt.AlignmentFlag.AlignTop) + self.RetryConnectionButton = IconButton(parent=self.cw_buttonFrame) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.RetryConnectionButton.sizePolicy().hasHeightForWidth()) + self.RetryConnectionButton.setSizePolicy(sizePolicy) + self.RetryConnectionButton.setMinimumSize(QtCore.QSize(100, 80)) + self.RetryConnectionButton.setMaximumSize(QtCore.QSize(100, 80)) + self.RetryConnectionButton.setBaseSize(QtCore.QSize(80, 80)) + palette = QtGui.QPalette() + self.RetryConnectionButton.setPalette(palette) + font = QtGui.QFont() + font.setPointSize(13) + self.RetryConnectionButton.setFont(font) + self.RetryConnectionButton.setTabletTracking(True) + self.RetryConnectionButton.setFocusPolicy(QtCore.Qt.FocusPolicy.ClickFocus) + self.RetryConnectionButton.setAutoFillBackground(False) + self.RetryConnectionButton.setStyleSheet("") + icon2 = QtGui.QIcon() + icon2.addPixmap(QtGui.QPixmap(":/system_icons/media/btn_icons/retry_connection.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off) + self.RetryConnectionButton.setIcon(icon2) + self.RetryConnectionButton.setIconSize(QtCore.QSize(16, 16)) + self.RetryConnectionButton.setCheckable(False) + self.RetryConnectionButton.setAutoRepeatDelay(0) + self.RetryConnectionButton.setAutoRepeatInterval(0) + self.RetryConnectionButton.setAutoDefault(False) + self.RetryConnectionButton.setDefault(False) + self.RetryConnectionButton.setFlat(True) + self.RetryConnectionButton.setProperty("icon_pixmap", QtGui.QPixmap(":/system/media/btn_icons/restart_printer.svg")) + self.RetryConnectionButton.setProperty("text_color", QtGui.QColor(255, 255, 255)) + self.RetryConnectionButton.setProperty("has_text", True) + self.RetryConnectionButton.setObjectName("RetryConnectionButton") + self.horizontalLayout.addWidget(self.RetryConnectionButton, 0, QtCore.Qt.AlignmentFlag.AlignHCenter|QtCore.Qt.AlignmentFlag.AlignTop) + self.updatepageButton = IconButton(parent=self.cw_buttonFrame) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.updatepageButton.sizePolicy().hasHeightForWidth()) + self.updatepageButton.setSizePolicy(sizePolicy) + self.updatepageButton.setMinimumSize(QtCore.QSize(100, 80)) + self.updatepageButton.setMaximumSize(QtCore.QSize(100, 80)) + self.updatepageButton.setBaseSize(QtCore.QSize(80, 80)) + self.updatepageButton.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.BlankCursor)) + self.updatepageButton.setTabletTracking(True) + self.updatepageButton.setFocusPolicy(QtCore.Qt.FocusPolicy.NoFocus) + self.updatepageButton.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu) + self.updatepageButton.setAutoFillBackground(False) + self.updatepageButton.setIcon(icon1) + self.updatepageButton.setAutoDefault(False) + self.updatepageButton.setDefault(False) + self.updatepageButton.setFlat(True) + self.updatepageButton.setProperty("icon_pixmap", QtGui.QPixmap(":/system/media/btn_icons/update-software-icon.svg")) + self.updatepageButton.setProperty("text_color", QtGui.QColor(255, 255, 255)) + self.updatepageButton.setProperty("has_text", True) + self.updatepageButton.setObjectName("updatepageButton") + self.horizontalLayout.addWidget(self.updatepageButton, 0, QtCore.Qt.AlignmentFlag.AlignHCenter|QtCore.Qt.AlignmentFlag.AlignTop) + self.wifi_button = IconButton(parent=self.cw_buttonFrame) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.wifi_button.sizePolicy().hasHeightForWidth()) + self.wifi_button.setSizePolicy(sizePolicy) + self.wifi_button.setMinimumSize(QtCore.QSize(100, 80)) + self.wifi_button.setMaximumSize(QtCore.QSize(100, 80)) + self.wifi_button.setBaseSize(QtCore.QSize(80, 80)) + self.wifi_button.setTabletTracking(True) + self.wifi_button.setFocusPolicy(QtCore.Qt.FocusPolicy.NoFocus) + self.wifi_button.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.NoContextMenu) + self.wifi_button.setAutoFillBackground(False) + self.wifi_button.setIcon(icon2) + self.wifi_button.setAutoDefault(False) + self.wifi_button.setDefault(False) + self.wifi_button.setFlat(True) + self.wifi_button.setProperty("icon_pixmap", QtGui.QPixmap(":/network/media/btn_icons/wifi_config.svg")) + self.wifi_button.setProperty("has_text", True) + self.wifi_button.setObjectName("wifi_button") + self.horizontalLayout.addWidget(self.wifi_button, 0, QtCore.Qt.AlignmentFlag.AlignHCenter|QtCore.Qt.AlignmentFlag.AlignTop) + self.cw_Frame = QtWidgets.QFrame(parent=ConnectivityForm) + self.cw_Frame.setGeometry(QtCore.QRect(0, 0, 800, 380)) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.cw_Frame.sizePolicy().hasHeightForWidth()) + self.cw_Frame.setSizePolicy(sizePolicy) + self.cw_Frame.setMinimumSize(QtCore.QSize(800, 380)) + self.cw_Frame.setMaximumSize(QtCore.QSize(800, 380)) + self.cw_Frame.setAutoFillBackground(False) + self.cw_Frame.setStyleSheet("") + self.cw_Frame.setFrameShape(QtWidgets.QFrame.Shape.NoFrame) + self.cw_Frame.setFrameShadow(QtWidgets.QFrame.Shadow.Raised) + self.cw_Frame.setObjectName("cw_Frame") + self.verticalLayout = QtWidgets.QVBoxLayout(self.cw_Frame) + self.verticalLayout.setObjectName("verticalLayout") + spacerItem = QtWidgets.QSpacerItem(775, 70, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum) + self.verticalLayout.addItem(spacerItem) + self.connectionTextBox = QtWidgets.QLabel(parent=self.cw_Frame) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Preferred) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.connectionTextBox.sizePolicy().hasHeightForWidth()) + self.connectionTextBox.setSizePolicy(sizePolicy) + self.connectionTextBox.setMaximumSize(QtCore.QSize(800, 380)) + palette = QtGui.QPalette() + brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) + brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) + palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.WindowText, brush) + brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) + brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) + palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Text, brush) + brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) + brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) + palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.ButtonText, brush) + brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) + brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) + palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.WindowText, brush) + brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) + brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) + palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Text, brush) + brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) + brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) + palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.ButtonText, brush) + brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) + brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) + palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.WindowText, brush) + brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) + brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) + palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Text, brush) + brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) + brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) + palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.ButtonText, brush) + self.connectionTextBox.setPalette(palette) + font = QtGui.QFont() + font.setFamily("Momcake") + font.setPointSize(17) + font.setBold(True) + font.setItalic(False) + font.setWeight(75) + self.connectionTextBox.setFont(font) + self.connectionTextBox.setStyleSheet("color:white") + self.connectionTextBox.setText("") + self.connectionTextBox.setTextFormat(QtCore.Qt.TextFormat.AutoText) + self.connectionTextBox.setScaledContents(False) + self.connectionTextBox.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) + self.connectionTextBox.setWordWrap(True) + self.connectionTextBox.setTextInteractionFlags(QtCore.Qt.TextInteractionFlag.NoTextInteraction) + self.connectionTextBox.setObjectName("connectionTextBox") + self.verticalLayout.addWidget(self.connectionTextBox) + + self.retranslateUi(ConnectivityForm) + QtCore.QMetaObject.connectSlotsByName(ConnectivityForm) + + def retranslateUi(self, ConnectivityForm): + _translate = QtCore.QCoreApplication.translate + ConnectivityForm.setWindowTitle(_translate("ConnectivityForm", "Form")) + self.RestartKlipperButton.setText(_translate("ConnectivityForm", "Restart Klipper")) + self.RestartKlipperButton.setProperty("text_formatting", _translate("ConnectivityForm", "bottom")) + self.RebootSystemButton.setText(_translate("ConnectivityForm", "Reboot")) + self.RebootSystemButton.setProperty("text_formatting", _translate("ConnectivityForm", "bottom")) + self.FirmwareRestartButton.setText(_translate("ConnectivityForm", "Firmware Restart")) + self.FirmwareRestartButton.setProperty("text_formatting", _translate("ConnectivityForm", "bottom")) + self.RetryConnectionButton.setText(_translate("ConnectivityForm", "Retry ")) + self.RetryConnectionButton.setProperty("text_formatting", _translate("ConnectivityForm", "bottom")) + self.updatepageButton.setText(_translate("ConnectivityForm", "Update page")) + self.updatepageButton.setProperty("text_formatting", _translate("ConnectivityForm", "bottom")) + self.wifi_button.setText(_translate("ConnectivityForm", "Wifi Settings")) + self.wifi_button.setProperty("class", _translate("ConnectivityForm", "system_control_btn")) + self.wifi_button.setProperty("text_formatting", _translate("ConnectivityForm", "bottom")) +from lib.utils.blocks_frame import BlocksCustomFrame +from lib.utils.icon_button import IconButton diff --git a/BlocksScreen/lib/ui/wifiConnectivityWindow.ui b/BlocksScreen/lib/ui/wifiConnectivityWindow.ui deleted file mode 100644 index 688da18c..00000000 --- a/BlocksScreen/lib/ui/wifiConnectivityWindow.ui +++ /dev/null @@ -1,3184 +0,0 @@ - - - wifi_stacked_page - - - - 0 - 0 - 852 - 480 - - - - - 0 - 0 - - - - - 0 - 400 - - - - - 16777215 - 575 - - - - StackedWidget - - - #wifi_stacked_page{ - - - background-image: url(:/background/media/1st_background.png); -} - - - - 4 - - - - - 0 - 0 - - - - - - - - - Qt::Horizontal - - - QSizePolicy::Minimum - - - - 60 - 60 - - - - - - - - - 0 - 0 - - - - - 300 - 0 - - - - - 16777215 - 60 - - - - - 20 - - - - color:white - - - Networks - - - Qt::AlignCenter - - - - - - - - 60 - 60 - - - - - 60 - 60 - - - - - - - true - - - :/ui/media/btn_icons/back.svg - - - - - - - - - - - - 0 - 0 - - - - QFrame::StyledPanel - - - QFrame::Raised - - - - - - - 0 - 0 - - - - - 17 - - - - color: rgb(255, 255, 255); - - - - - - false - - - Qt::AlignCenter - - - - - - - Qt::Horizontal - - - - - - - - 15 - - - - color: rgb(255, 255, 255); - - - - - - Qt::AlignCenter - - - - - - - - - - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 255 - - - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 255 - - - - - - - - - 120 - 120 - 120 - - - - - - - 120 - 120 - 120 - - - - - - - - - 15 - - - - Signal -Strength - - - Qt::AlignCenter - - - - - - - Qt::Horizontal - - - - - - - - 11 - - - - color: rgb(255, 255, 255); - - - TextLabel - - - Qt::AlignCenter - - - - - - - - - - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 255 - - - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 255 - - - - - - - - - 120 - 120 - 120 - - - - - - - 120 - 120 - 120 - - - - - - - - - 15 - - - - Security -Type - - - Qt::AlignCenter - - - - - - - Qt::Horizontal - - - - - - - - 11 - - - - color: rgb(255, 255, 255); - - - TextLabel - - - Qt::AlignCenter - - - - - - - - - - - false - - - - 17 - - - - - - - - - - - - - - - - false - - - color: white - - - Qt::ImhNone - - - No network connection. - -Try connecting to Wi-Fi -or turn on the hotspot -using the buttons on the side. - - - Qt::PlainText - - - false - - - Qt::AlignCenter - - - - - - - true - - - - 0 - 0 - - - - - - - - - - - - - - - - - 0 - 0 - - - - - 400 - 9999 - - - - - 20 - - - - Wi-Fi - - - - - - - - 0 - 0 - - - - - 400 - 9999 - - - - - 20 - - - - Hotspot - - - - - - - - - - - - - - - - - - 60 - 60 - - - - - 60 - 60 - - - - Reload - - - true - - - icon - - - :/ui/media/btn_icons/refresh.svg - - - - - - - - 16777215 - 60 - - - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 255 - - - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 255 - - - - - - - - - 120 - 120 - 120 - - - - - - - 120 - 120 - 120 - - - - - - - - - 20 - - - - Wi-Fi List - - - Qt::AlignCenter - - - - - - - - 60 - 60 - - - - - 60 - 60 - - - - Back - - - true - - - back_btn - - - icon - - - :/ui/media/btn_icons/back.svg - - - - - - - - - - - - 1 - 1 - - - - - 0 - 0 - - - - BlankCursor - - - background-color: rgba(255, 255, 255, 0); - - - QFrame::NoFrame - - - QFrame::Plain - - - Qt::ScrollBarAlwaysOff - - - Qt::ScrollBarAlwaysOff - - - QAbstractItemView::ScrollPerPixel - - - QAbstractItemView::ScrollPerPixel - - - - - - - - 0 - 0 - - - - Qt::Vertical - - - - - - - - - - - - - - - Qt::Horizontal - - - QSizePolicy::Minimum - - - - 40 - 60 - - - - - - - - - 0 - 0 - - - - - 0 - 60 - - - - - 16777215 - 60 - - - - - 20 - - - - color:white - - - TextLabel - - - Qt::AlignCenter - - - - - - - - 60 - 60 - - - - - 60 - 60 - - - - Back - - - true - - - back_btn - - - icon - - - :/ui/media/btn_icons/back.svg - - - - - - - - - QLayout::SetMinimumSize - - - - - Qt::Vertical - - - QSizePolicy::Minimum - - - - 20 - 50 - - - - - - - - - 0 - 2 - - - - - 0 - 80 - - - - - 16777215 - 90 - - - - QFrame::StyledPanel - - - QFrame::Raised - - - - - 10 - 10 - 761 - 82 - - - - - QLayout::SetMaximumSize - - - - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 255 - - - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 255 - - - - - - - - - 120 - 120 - 120 - - - - - - - 120 - 120 - 120 - - - - - - - - - 15 - - - - Password - - - Qt::AlignCenter - - - - - - - - 500 - 60 - - - - - 12 - - - - - - - - - 60 - 60 - - - - - 60 - 60 - - - - View - - - true - - - back_btn - - - icon - - - :/ui/media/btn_icons/unsee.svg - - - - - - - - - - - Qt::Vertical - - - QSizePolicy::Minimum - - - - 20 - 150 - - - - - - - - QLayout::SetMinimumSize - - - - - true - - - - 1 - 1 - - - - - 250 - 80 - - - - - 250 - 80 - - - - - Momcake - 15 - - - - - - - Activate - - - - 16 - 16 - - - - false - - - false - - - true - - - :/dialog/media/btn_icons/yes.svg - - - - - - - - - - - - - - - - - Qt::Horizontal - - - QSizePolicy::Minimum - - - - 60 - 20 - - - - - - - - - 0 - 0 - - - - - 16777215 - 60 - - - - - 20 - - - - color: rgb(255, 255, 255); - - - - - - false - - - Qt::AlignCenter - - - - - - - - 60 - 60 - - - - - 60 - 60 - - - - Back - - - true - - - back_btn - - - icon - - - :/ui/media/btn_icons/back.svg - - - - - - - - - - - Qt::Vertical - - - QSizePolicy::Minimum - - - - 20 - 20 - - - - - - - - - - - - - 0 - 0 - - - - - 400 - 16777215 - - - - QFrame::StyledPanel - - - QFrame::Raised - - - - - - - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 255 - - - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 255 - - - - - - - - - 120 - 120 - 120 - - - - - - - 120 - 120 - 120 - - - - - - - - - 15 - - - - Signal -Strength - - - Qt::AlignCenter - - - - - - - - 250 - 0 - - - - - 11 - - - - color: rgb(255, 255, 255); - - - TextLabel - - - Qt::AlignCenter - - - - - - - - - Qt::Horizontal - - - - - - - - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 255 - - - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 255 - - - - - - - - - 120 - 120 - 120 - - - - - - - 120 - 120 - 120 - - - - - - - - - 15 - - - - Security -Type - - - Qt::AlignCenter - - - - - - - - 250 - 0 - - - - - 11 - - - - color: rgb(255, 255, 255); - - - TextLabel - - - Qt::AlignCenter - - - - - - - - - Qt::Horizontal - - - - - - - - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 255 - - - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 255 - - - - - - - - - 120 - 120 - 120 - - - - - - - 120 - 120 - 120 - - - - - - - - - 15 - - - - Status - - - Qt::AlignCenter - - - - - - - - 250 - 0 - - - - - 11 - - - - color: rgb(255, 255, 255); - - - TextLabel - - - Qt::AlignCenter - - - - - - - - - - - - - - QFrame::StyledPanel - - - QFrame::Raised - - - - - - - 250 - 80 - - - - - 250 - 80 - - - - - 15 - - - - Connect - - - true - - - - - - - - 250 - 80 - - - - - 250 - 80 - - - - - 15 - - - - Details - - - true - - - - - - - - 250 - 80 - - - - - 250 - 80 - - - - - 15 - - - - Forget - - - true - - - - - - - - - - - - - - - - - - - - Qt::Horizontal - - - QSizePolicy::Minimum - - - - 60 - 60 - - - - - - - - - 0 - 0 - - - - - 16777215 - 60 - - - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 255 - - - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 255 - - - - - - - - - 120 - 120 - 120 - - - - - - - 120 - 120 - 120 - - - - - - - - - 20 - - - - SSID - - - Qt::AlignCenter - - - - - - - - 60 - 60 - - - - - 60 - 60 - - - - Back - - - true - - - back_btn - - - icon - - - :/ui/media/btn_icons/back.svg - - - - - - - - - - - Qt::Vertical - - - QSizePolicy::Minimum - - - - 20 - 20 - - - - - - - - - 0 - 0 - - - - - 0 - 70 - - - - - 16777215 - 70 - - - - QFrame::StyledPanel - - - QFrame::Raised - - - - - 0 - 0 - 776 - 62 - - - - - - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 255 - - - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 255 - - - - - - - - - 120 - 120 - 120 - - - - - - - 120 - 120 - 120 - - - - - - - - - 15 - - - - Change -Password - - - Qt::AlignCenter - - - - - - - - 500 - 60 - - - - - 500 - 16777215 - - - - - 12 - - - - - - - - - 60 - 60 - - - - - 60 - 60 - - - - View - - - true - - - back_btn - - - icon - - - :/ui/media/btn_icons/unsee.svg - - - - - - - - - - - - - - - - 0 - 0 - - - - - 400 - 160 - - - - - 400 - 99999 - - - - QFrame::StyledPanel - - - QFrame::Raised - - - Network priority - - - - - - Qt::Vertical - - - QSizePolicy::Minimum - - - - 10 - 10 - - - - - - - - - - - 100 - 100 - - - - - 100 - 100 - - - - Low - - - true - - - true - - - true - - - back_btn - - - icon - - - :/ui/media/btn_icons/indf_svg.svg - - - priority_btn_group - - - - - - - - 100 - 100 - - - - - 100 - 100 - - - - Medium - - - true - - - true - - - true - - - true - - - back_btn - - - icon - - - :/ui/media/btn_icons/indf_svg.svg - - - priority_btn_group - - - - - - - - 100 - 100 - - - - - 100 - 100 - - - - High - - - true - - - false - - - true - - - true - - - back_btn - - - icon - - - :/ui/media/btn_icons/indf_svg.svg - - - priority_btn_group - - - - - - - - - - - - - - - - - - - - - - - - Qt::Horizontal - - - QSizePolicy::Minimum - - - - 40 - 20 - - - - - - - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 255 - - - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 255 - - - - - - - - - 120 - 120 - 120 - - - - - - - 120 - 120 - 120 - - - - - - - - - 20 - - - - Hotspot - - - Qt::AlignCenter - - - - - - - - 60 - 60 - - - - - 60 - 60 - - - - Back - - - true - - - back_btn - - - icon - - - :/ui/media/btn_icons/back.svg - - - - - - - - - 5 - - - 5 - - - - - Qt::Vertical - - - QSizePolicy::Minimum - - - - 20 - 50 - - - - - - - - - 0 - 0 - - - - - 70 - 80 - - - - QFrame::StyledPanel - - - QFrame::Raised - - - - - 0 - 10 - 776 - 61 - - - - - - - - 0 - 0 - - - - - 0 - 0 - - - - - 150 - 16777215 - - - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 255 - - - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 255 - - - - - - - - - 120 - 120 - 120 - - - - - - - 120 - 120 - 120 - - - - - - - - - Momcake - 10 - - - - Hotspot Name: - - - Qt::AlignCenter - - - - - - - - 0 - 0 - - - - - 500 - 40 - - - - - 500 - 60 - - - - - 12 - - - - QLineEdit::Password - - - - - - - Qt::Horizontal - - - QSizePolicy::Minimum - - - - 60 - 20 - - - - - - - - - - - - Qt::Vertical - - - QSizePolicy::Minimum - - - - 773 - 128 - - - - - - - - - 0 - 0 - - - - - 0 - 80 - - - - QFrame::StyledPanel - - - QFrame::Raised - - - - - 0 - 10 - 776 - 62 - - - - - - - - 0 - 0 - - - - - 0 - 0 - - - - - 150 - 16777215 - - - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 255 - - - - - - - 127 - 127 - 127 - - - - - - - 170 - 170 - 170 - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 255 - - - - - - - 0 - 0 - 0 - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 255 - - - - - - - 0 - 0 - 0 - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 220 - - - - - - - 0 - 0 - 0 - - - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 255 - - - - - - - 127 - 127 - 127 - - - - - - - 170 - 170 - 170 - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 255 - - - - - - - 0 - 0 - 0 - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 255 - - - - - - - 0 - 0 - 0 - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 220 - - - - - - - 0 - 0 - 0 - - - - - - - - - 127 - 127 - 127 - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 255 - - - - - - - 127 - 127 - 127 - - - - - - - 170 - 170 - 170 - - - - - - - 127 - 127 - 127 - - - - - - - 255 - 255 - 255 - - - - - - - 127 - 127 - 127 - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 255 - - - - - - - 0 - 0 - 0 - - - - - - - 255 - 255 - 255 - - - - - - - 255 - 255 - 220 - - - - - - - 0 - 0 - 0 - - - - - - - - - Momcake - 10 - - - - Hotspot Password: - - - Qt::AlignCenter - - - - - - - - 0 - 0 - - - - - 500 - 40 - - - - - 500 - 60 - - - - - 12 - - - - QLineEdit::Password - - - - - - - - 60 - 60 - - - - - 60 - 60 - - - - View - - - true - - - back_btn - - - icon - - - :/ui/media/btn_icons/unsee.svg - - - - - - - - - - - - 200 - 80 - - - - - 250 - 100 - - - - - 18 - 75 - true - - - - Save - - - :/ui/media/btn_icons/save.svg - - - - - - - - - - - IconButton - QPushButton -
lib.utils.icon_button
-
- - BlocksCustomLinEdit - QLineEdit -
lib.utils.blocks_linedit
-
- - NetworkWidgetbuttons - QPushButton -
lib.utils.blocks_togglebutton
-
- - BlocksCustomFrame - QFrame -
lib.utils.blocks_frame
- 1 -
- - BlocksCustomButton - QPushButton -
lib.utils.blocks_button
-
- - LoadingOverlayWidget - QLabel -
lib.panels.widgets.loadWidget
-
-
- - - - - - - - - - -
diff --git a/BlocksScreen/lib/ui/wifiConnectivityWindow_ui.py b/BlocksScreen/lib/ui/wifiConnectivityWindow_ui.py deleted file mode 100644 index 4a41aae5..00000000 --- a/BlocksScreen/lib/ui/wifiConnectivityWindow_ui.py +++ /dev/null @@ -1,1301 +0,0 @@ -# Form implementation generated from reading ui file '/home/levi/BlocksScreen/BlocksScreen/lib/ui/wifiConnectivityWindow.ui' -# -# Created by: PyQt6 UI code generator 6.7.1 -# -# WARNING: Any manual changes made to this file will be lost when pyuic6 is -# run again. Do not edit this file unless you know what you are doing. - - -from PyQt6 import QtCore, QtGui, QtWidgets - - -class Ui_wifi_stacked_page(object): - def setupUi(self, wifi_stacked_page): - wifi_stacked_page.setObjectName("wifi_stacked_page") - wifi_stacked_page.resize(800, 480) - sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(wifi_stacked_page.sizePolicy().hasHeightForWidth()) - wifi_stacked_page.setSizePolicy(sizePolicy) - wifi_stacked_page.setMinimumSize(QtCore.QSize(0, 400)) - wifi_stacked_page.setMaximumSize(QtCore.QSize(16777215, 575)) - wifi_stacked_page.setStyleSheet("#wifi_stacked_page{\n" -" \n" -" \n" -" background-image: url(:/background/media/1st_background.png);\n" -"}\n" -"") - self.main_network_page = QtWidgets.QWidget() - sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.main_network_page.sizePolicy().hasHeightForWidth()) - self.main_network_page.setSizePolicy(sizePolicy) - self.main_network_page.setObjectName("main_network_page") - self.verticalLayout_14 = QtWidgets.QVBoxLayout(self.main_network_page) - self.verticalLayout_14.setObjectName("verticalLayout_14") - self.main_network_header_layout = QtWidgets.QHBoxLayout() - self.main_network_header_layout.setObjectName("main_network_header_layout") - spacerItem = QtWidgets.QSpacerItem(60, 60, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum) - self.main_network_header_layout.addItem(spacerItem) - self.network_main_title = QtWidgets.QLabel(parent=self.main_network_page) - sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.network_main_title.sizePolicy().hasHeightForWidth()) - self.network_main_title.setSizePolicy(sizePolicy) - self.network_main_title.setMinimumSize(QtCore.QSize(300, 0)) - self.network_main_title.setMaximumSize(QtCore.QSize(16777215, 60)) - font = QtGui.QFont() - font.setPointSize(20) - self.network_main_title.setFont(font) - self.network_main_title.setStyleSheet("color:white") - self.network_main_title.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) - self.network_main_title.setObjectName("network_main_title") - self.main_network_header_layout.addWidget(self.network_main_title) - self.network_backButton = IconButton(parent=self.main_network_page) - self.network_backButton.setMinimumSize(QtCore.QSize(60, 60)) - self.network_backButton.setMaximumSize(QtCore.QSize(60, 60)) - self.network_backButton.setText("") - self.network_backButton.setFlat(True) - self.network_backButton.setProperty("icon_pixmap", QtGui.QPixmap(":/ui/media/btn_icons/back.svg")) - self.network_backButton.setObjectName("network_backButton") - self.main_network_header_layout.addWidget(self.network_backButton) - self.verticalLayout_14.addLayout(self.main_network_header_layout) - self.main_network_content_layout = QtWidgets.QHBoxLayout() - self.main_network_content_layout.setObjectName("main_network_content_layout") - self.mn_information_layout = BlocksCustomFrame(parent=self.main_network_page) - sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.mn_information_layout.sizePolicy().hasHeightForWidth()) - self.mn_information_layout.setSizePolicy(sizePolicy) - self.mn_information_layout.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel) - self.mn_information_layout.setFrameShadow(QtWidgets.QFrame.Shadow.Raised) - self.mn_information_layout.setObjectName("mn_information_layout") - self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.mn_information_layout) - self.verticalLayout_3.setObjectName("verticalLayout_3") - self.netlist_ssuid = QtWidgets.QLabel(parent=self.mn_information_layout) - sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.netlist_ssuid.sizePolicy().hasHeightForWidth()) - self.netlist_ssuid.setSizePolicy(sizePolicy) - font = QtGui.QFont() - font.setPointSize(17) - self.netlist_ssuid.setFont(font) - self.netlist_ssuid.setStyleSheet("color: rgb(255, 255, 255);") - self.netlist_ssuid.setText("") - self.netlist_ssuid.setScaledContents(False) - self.netlist_ssuid.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) - self.netlist_ssuid.setObjectName("netlist_ssuid") - self.verticalLayout_3.addWidget(self.netlist_ssuid) - self.mn_info_seperator = QtWidgets.QFrame(parent=self.mn_information_layout) - self.mn_info_seperator.setFrameShape(QtWidgets.QFrame.Shape.HLine) - self.mn_info_seperator.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken) - self.mn_info_seperator.setObjectName("mn_info_seperator") - self.verticalLayout_3.addWidget(self.mn_info_seperator) - self.netlist_ip = QtWidgets.QLabel(parent=self.mn_information_layout) - font = QtGui.QFont() - font.setPointSize(15) - self.netlist_ip.setFont(font) - self.netlist_ip.setStyleSheet("color: rgb(255, 255, 255);") - self.netlist_ip.setText("") - self.netlist_ip.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) - self.netlist_ip.setObjectName("netlist_ip") - self.verticalLayout_3.addWidget(self.netlist_ip) - self.mn_conn_info = QtWidgets.QHBoxLayout() - self.mn_conn_info.setObjectName("mn_conn_info") - self.mn_sg_info_layout = QtWidgets.QVBoxLayout() - self.mn_sg_info_layout.setObjectName("mn_sg_info_layout") - self.netlist_strength_label = QtWidgets.QLabel(parent=self.mn_information_layout) - palette = QtGui.QPalette() - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.WindowText, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Text, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.WindowText, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Text, brush) - brush = QtGui.QBrush(QtGui.QColor(120, 120, 120)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.WindowText, brush) - brush = QtGui.QBrush(QtGui.QColor(120, 120, 120)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Text, brush) - self.netlist_strength_label.setPalette(palette) - font = QtGui.QFont() - font.setPointSize(15) - self.netlist_strength_label.setFont(font) - self.netlist_strength_label.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) - self.netlist_strength_label.setObjectName("netlist_strength_label") - self.mn_sg_info_layout.addWidget(self.netlist_strength_label) - self.line_2 = QtWidgets.QFrame(parent=self.mn_information_layout) - self.line_2.setFrameShape(QtWidgets.QFrame.Shape.HLine) - self.line_2.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken) - self.line_2.setObjectName("line_2") - self.mn_sg_info_layout.addWidget(self.line_2) - self.netlist_strength = QtWidgets.QLabel(parent=self.mn_information_layout) - font = QtGui.QFont() - font.setPointSize(11) - self.netlist_strength.setFont(font) - self.netlist_strength.setStyleSheet("color: rgb(255, 255, 255);") - self.netlist_strength.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) - self.netlist_strength.setObjectName("netlist_strength") - self.mn_sg_info_layout.addWidget(self.netlist_strength) - self.mn_conn_info.addLayout(self.mn_sg_info_layout) - self.mn_sec_info_layout = QtWidgets.QVBoxLayout() - self.mn_sec_info_layout.setObjectName("mn_sec_info_layout") - self.netlist_security_label = QtWidgets.QLabel(parent=self.mn_information_layout) - palette = QtGui.QPalette() - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.WindowText, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Text, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.WindowText, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Text, brush) - brush = QtGui.QBrush(QtGui.QColor(120, 120, 120)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.WindowText, brush) - brush = QtGui.QBrush(QtGui.QColor(120, 120, 120)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Text, brush) - self.netlist_security_label.setPalette(palette) - font = QtGui.QFont() - font.setPointSize(15) - self.netlist_security_label.setFont(font) - self.netlist_security_label.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) - self.netlist_security_label.setObjectName("netlist_security_label") - self.mn_sec_info_layout.addWidget(self.netlist_security_label) - self.line_3 = QtWidgets.QFrame(parent=self.mn_information_layout) - self.line_3.setFrameShape(QtWidgets.QFrame.Shape.HLine) - self.line_3.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken) - self.line_3.setObjectName("line_3") - self.mn_sec_info_layout.addWidget(self.line_3) - self.netlist_security = QtWidgets.QLabel(parent=self.mn_information_layout) - font = QtGui.QFont() - font.setPointSize(11) - self.netlist_security.setFont(font) - self.netlist_security.setStyleSheet("color: rgb(255, 255, 255);") - self.netlist_security.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) - self.netlist_security.setObjectName("netlist_security") - self.mn_sec_info_layout.addWidget(self.netlist_security) - self.mn_conn_info.addLayout(self.mn_sec_info_layout) - self.verticalLayout_3.addLayout(self.mn_conn_info) - self.mn_info_box = QtWidgets.QLabel(parent=self.mn_information_layout) - self.mn_info_box.setEnabled(False) - font = QtGui.QFont() - font.setPointSize(17) - self.mn_info_box.setFont(font) - self.mn_info_box.setStatusTip("") - self.mn_info_box.setWhatsThis("") - self.mn_info_box.setAccessibleName("") - self.mn_info_box.setAccessibleDescription("") - self.mn_info_box.setAutoFillBackground(False) - self.mn_info_box.setStyleSheet("color: white") - self.mn_info_box.setInputMethodHints(QtCore.Qt.InputMethodHint.ImhNone) - self.mn_info_box.setTextFormat(QtCore.Qt.TextFormat.PlainText) - self.mn_info_box.setScaledContents(False) - self.mn_info_box.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) - self.mn_info_box.setObjectName("mn_info_box") - self.verticalLayout_3.addWidget(self.mn_info_box) - self.loadingwidget = LoadingOverlayWidget(parent=self.mn_information_layout) - self.loadingwidget.setEnabled(True) - sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.loadingwidget.sizePolicy().hasHeightForWidth()) - self.loadingwidget.setSizePolicy(sizePolicy) - self.loadingwidget.setText("") - self.loadingwidget.setObjectName("loadingwidget") - self.verticalLayout_3.addWidget(self.loadingwidget) - self.main_network_content_layout.addWidget(self.mn_information_layout) - self.mn_option_button_layout = QtWidgets.QVBoxLayout() - self.mn_option_button_layout.setObjectName("mn_option_button_layout") - self.wifi_button = NetworkWidgetbuttons(parent=self.main_network_page) - sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.wifi_button.sizePolicy().hasHeightForWidth()) - self.wifi_button.setSizePolicy(sizePolicy) - self.wifi_button.setMaximumSize(QtCore.QSize(400, 9999)) - font = QtGui.QFont() - font.setPointSize(20) - self.wifi_button.setFont(font) - self.wifi_button.setObjectName("wifi_button") - self.mn_option_button_layout.addWidget(self.wifi_button) - self.hotspot_button = NetworkWidgetbuttons(parent=self.main_network_page) - sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.hotspot_button.sizePolicy().hasHeightForWidth()) - self.hotspot_button.setSizePolicy(sizePolicy) - self.hotspot_button.setMaximumSize(QtCore.QSize(400, 9999)) - font = QtGui.QFont() - font.setPointSize(20) - self.hotspot_button.setFont(font) - self.hotspot_button.setObjectName("hotspot_button") - self.mn_option_button_layout.addWidget(self.hotspot_button) - self.main_network_content_layout.addLayout(self.mn_option_button_layout) - self.verticalLayout_14.addLayout(self.main_network_content_layout) - wifi_stacked_page.addWidget(self.main_network_page) - self.network_list_page = QtWidgets.QWidget() - self.network_list_page.setObjectName("network_list_page") - self.verticalLayout_9 = QtWidgets.QVBoxLayout(self.network_list_page) - self.verticalLayout_9.setObjectName("verticalLayout_9") - self.nl_header_layout = QtWidgets.QHBoxLayout() - self.nl_header_layout.setObjectName("nl_header_layout") - self.rescan_button = IconButton(parent=self.network_list_page) - self.rescan_button.setMinimumSize(QtCore.QSize(60, 60)) - self.rescan_button.setMaximumSize(QtCore.QSize(60, 60)) - self.rescan_button.setFlat(True) - self.rescan_button.setProperty("icon_pixmap", QtGui.QPixmap(":/ui/media/btn_icons/refresh.svg")) - self.rescan_button.setObjectName("rescan_button") - self.nl_header_layout.addWidget(self.rescan_button) - self.network_list_title = QtWidgets.QLabel(parent=self.network_list_page) - self.network_list_title.setMaximumSize(QtCore.QSize(16777215, 60)) - palette = QtGui.QPalette() - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.WindowText, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Text, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.WindowText, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Text, brush) - brush = QtGui.QBrush(QtGui.QColor(120, 120, 120)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.WindowText, brush) - brush = QtGui.QBrush(QtGui.QColor(120, 120, 120)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Text, brush) - self.network_list_title.setPalette(palette) - font = QtGui.QFont() - font.setPointSize(20) - self.network_list_title.setFont(font) - self.network_list_title.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) - self.network_list_title.setObjectName("network_list_title") - self.nl_header_layout.addWidget(self.network_list_title) - self.nl_back_button = IconButton(parent=self.network_list_page) - self.nl_back_button.setMinimumSize(QtCore.QSize(60, 60)) - self.nl_back_button.setMaximumSize(QtCore.QSize(60, 60)) - self.nl_back_button.setFlat(True) - self.nl_back_button.setProperty("icon_pixmap", QtGui.QPixmap(":/ui/media/btn_icons/back.svg")) - self.nl_back_button.setObjectName("nl_back_button") - self.nl_header_layout.addWidget(self.nl_back_button) - self.verticalLayout_9.addLayout(self.nl_header_layout) - self.horizontalLayout_2 = QtWidgets.QHBoxLayout() - self.horizontalLayout_2.setObjectName("horizontalLayout_2") - self.listView = QtWidgets.QListView(self.network_list_page) - sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding) - sizePolicy.setHorizontalStretch(1) - sizePolicy.setVerticalStretch(1) - sizePolicy.setHeightForWidth(self.listView.sizePolicy().hasHeightForWidth()) - self.listView.setSizePolicy(sizePolicy) - self.listView.setMinimumSize(QtCore.QSize(0, 0)) - self.listView.setStyleSheet("background-color: rgba(255, 255, 255, 0);") - self.listView.setFrameShape(QtWidgets.QFrame.Shape.NoFrame) - self.listView.setFrameShadow(QtWidgets.QFrame.Shadow.Plain) - self.listView.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarPolicy.ScrollBarAlwaysOff) - self.listView.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarPolicy.ScrollBarAlwaysOff) - self.listView.setSelectionBehavior( - QtWidgets.QAbstractItemView.SelectionBehavior.SelectItems - ) - self.listView.setHorizontalScrollBarPolicy( # No horizontal scroll - QtCore.Qt.ScrollBarPolicy.ScrollBarAlwaysOff - ) - self.listView.setVerticalScrollMode( - QtWidgets.QAbstractItemView.ScrollMode.ScrollPerPixel - ) - self.listView.setVerticalScrollBarPolicy( - QtCore.Qt.ScrollBarPolicy.ScrollBarAlwaysOff - ) - QtWidgets.QScroller.grabGesture( - self.listView, - QtWidgets.QScroller.ScrollerGestureType.TouchGesture, - ) - QtWidgets.QScroller.grabGesture( - self.listView, - QtWidgets.QScroller.ScrollerGestureType.LeftMouseButtonGesture, - ) - self.listView.setEditTriggers( - QtWidgets.QAbstractItemView.EditTrigger.NoEditTriggers - ) - - scroller_instance = QtWidgets.QScroller.scroller(self.listView) - scroller_props = scroller_instance.scrollerProperties() - scroller_props.setScrollMetric( - QtWidgets.QScrollerProperties.ScrollMetric.DragVelocitySmoothingFactor, - 0.05, # Lower = more responsive - ) - scroller_props.setScrollMetric( - QtWidgets.QScrollerProperties.ScrollMetric.DecelerationFactor, - 0.4, # higher = less inertia - ) - QtWidgets.QScroller.scroller(self.listView).setScrollerProperties( - scroller_props - ) - self.verticalScrollBar = CustomScrollBar(parent=self.network_list_page) - self.listView.setVerticalScrollBar(self.verticalScrollBar) - self.listView.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarPolicy.ScrollBarAsNeeded) - self.horizontalLayout_2.addWidget(self.listView) - sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Minimum) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.verticalScrollBar.sizePolicy().hasHeightForWidth()) - self.verticalScrollBar.setSizePolicy(sizePolicy) - self.verticalScrollBar.setOrientation(QtCore.Qt.Orientation.Vertical) - self.verticalScrollBar.setObjectName("verticalScrollBar") - self.listView.setVerticalScrollMode(QtWidgets.QAbstractItemView.ScrollMode.ScrollPerPixel) - self.listView.setUniformItemSizes(True) - #self.listView.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarPolicy.ScrollBarAsNeeded) - self.listView.setSpacing(5) - self.horizontalLayout_2.addWidget(self.verticalScrollBar) - self.verticalLayout_9.addLayout(self.horizontalLayout_2) - wifi_stacked_page.addWidget(self.network_list_page) - self.add_network_page = QtWidgets.QWidget() - self.add_network_page.setObjectName("add_network_page") - self.verticalLayout_10 = QtWidgets.QVBoxLayout(self.add_network_page) - self.verticalLayout_10.setObjectName("verticalLayout_10") - self.verticalScrollBar.setAttribute( - QtCore.Qt.WidgetAttribute.WA_TransparentForMouseEvents, True - ) - self.scroller = QtWidgets.QScroller.scroller(self.listView) - self.add_np_header_layout = QtWidgets.QHBoxLayout() - self.add_np_header_layout.setObjectName("add_np_header_layout") - spacerItem1 = QtWidgets.QSpacerItem(40, 60, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum) - self.add_np_header_layout.addItem(spacerItem1) - self.add_network_network_label = QtWidgets.QLabel(parent=self.add_network_page) - sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Preferred) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.add_network_network_label.sizePolicy().hasHeightForWidth()) - self.add_network_network_label.setSizePolicy(sizePolicy) - self.add_network_network_label.setMinimumSize(QtCore.QSize(0, 60)) - self.add_network_network_label.setMaximumSize(QtCore.QSize(16777215, 60)) - font = QtGui.QFont() - font.setPointSize(20) - self.add_network_network_label.setFont(font) - self.add_network_network_label.setStyleSheet("color:white") - self.add_network_network_label.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) - self.add_network_network_label.setObjectName("add_network_network_label") - self.add_np_header_layout.addWidget(self.add_network_network_label) - self.add_network_page_backButton = IconButton(parent=self.add_network_page) - self.add_network_page_backButton.setMinimumSize(QtCore.QSize(60, 60)) - self.add_network_page_backButton.setMaximumSize(QtCore.QSize(60, 60)) - self.add_network_page_backButton.setFlat(True) - self.add_network_page_backButton.setProperty("icon_pixmap", QtGui.QPixmap(":/ui/media/btn_icons/back.svg")) - self.add_network_page_backButton.setObjectName("add_network_page_backButton") - self.add_np_header_layout.addWidget(self.add_network_page_backButton) - self.verticalLayout_10.addLayout(self.add_np_header_layout) - self.add_np_content_layout = QtWidgets.QVBoxLayout() - self.add_np_content_layout.setSizeConstraint(QtWidgets.QLayout.SizeConstraint.SetMinimumSize) - self.add_np_content_layout.setObjectName("add_np_content_layout") - spacerItem2 = QtWidgets.QSpacerItem(20, 50, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum) - self.add_np_content_layout.addItem(spacerItem2) - self.frame_2 = BlocksCustomFrame(parent=self.add_network_page) - sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(2) - sizePolicy.setHeightForWidth(self.frame_2.sizePolicy().hasHeightForWidth()) - self.frame_2.setSizePolicy(sizePolicy) - self.frame_2.setMinimumSize(QtCore.QSize(0, 80)) - self.frame_2.setMaximumSize(QtCore.QSize(16777215, 90)) - self.frame_2.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel) - self.frame_2.setFrameShadow(QtWidgets.QFrame.Shadow.Raised) - self.frame_2.setObjectName("frame_2") - self.layoutWidget_2 = QtWidgets.QWidget(parent=self.frame_2) - self.layoutWidget_2.setGeometry(QtCore.QRect(10, 10, 761, 82)) - self.layoutWidget_2.setObjectName("layoutWidget_2") - self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.layoutWidget_2) - self.horizontalLayout_5.setSizeConstraint(QtWidgets.QLayout.SizeConstraint.SetMaximumSize) - self.horizontalLayout_5.setContentsMargins(0, 0, 0, 0) - self.horizontalLayout_5.setObjectName("horizontalLayout_5") - self.add_network_password_label = QtWidgets.QLabel(parent=self.layoutWidget_2) - palette = QtGui.QPalette() - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.WindowText, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Text, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.WindowText, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Text, brush) - brush = QtGui.QBrush(QtGui.QColor(120, 120, 120)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.WindowText, brush) - brush = QtGui.QBrush(QtGui.QColor(120, 120, 120)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Text, brush) - self.add_network_password_label.setPalette(palette) - font = QtGui.QFont() - font.setPointSize(15) - self.add_network_password_label.setFont(font) - self.add_network_password_label.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) - self.add_network_password_label.setObjectName("add_network_password_label") - self.horizontalLayout_5.addWidget(self.add_network_password_label) - self.add_network_password_field = BlocksCustomLinEdit(parent=self.layoutWidget_2) - self.add_network_password_field.setMinimumSize(QtCore.QSize(500, 60)) - font = QtGui.QFont() - font.setPointSize(12) - self.add_network_password_field.setFont(font) - self.add_network_password_field.setObjectName("add_network_password_field") - self.horizontalLayout_5.addWidget(self.add_network_password_field) - self.add_network_password_view = IconButton(parent=self.layoutWidget_2) - self.add_network_password_view.setMinimumSize(QtCore.QSize(60, 60)) - self.add_network_password_view.setMaximumSize(QtCore.QSize(60, 60)) - self.add_network_password_view.setFlat(True) - self.add_network_password_view.setProperty("icon_pixmap", QtGui.QPixmap(":/ui/media/btn_icons/unsee.svg")) - self.add_network_password_view.setObjectName("add_network_password_view") - self.horizontalLayout_5.addWidget(self.add_network_password_view) - self.add_np_content_layout.addWidget(self.frame_2) - spacerItem3 = QtWidgets.QSpacerItem(20, 150, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum) - self.add_np_content_layout.addItem(spacerItem3) - self.horizontalLayout_6 = QtWidgets.QHBoxLayout() - self.horizontalLayout_6.setSizeConstraint(QtWidgets.QLayout.SizeConstraint.SetMinimumSize) - self.horizontalLayout_6.setObjectName("horizontalLayout_6") - self.add_network_validation_button = BlocksCustomButton(parent=self.add_network_page) - self.add_network_validation_button.setEnabled(True) - sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding) - sizePolicy.setHorizontalStretch(1) - sizePolicy.setVerticalStretch(1) - sizePolicy.setHeightForWidth(self.add_network_validation_button.sizePolicy().hasHeightForWidth()) - self.add_network_validation_button.setSizePolicy(sizePolicy) - self.add_network_validation_button.setMinimumSize(QtCore.QSize(250, 80)) - self.add_network_validation_button.setMaximumSize(QtCore.QSize(250, 80)) - font = QtGui.QFont() - font.setFamily("Momcake") - font.setPointSize(15) - self.add_network_validation_button.setFont(font) - self.add_network_validation_button.setStyleSheet("") - self.add_network_validation_button.setIconSize(QtCore.QSize(16, 16)) - self.add_network_validation_button.setCheckable(False) - self.add_network_validation_button.setChecked(False) - self.add_network_validation_button.setFlat(True) - self.add_network_validation_button.setProperty("icon_pixmap", QtGui.QPixmap(":/dialog/media/btn_icons/yes.svg")) - self.add_network_validation_button.setObjectName("add_network_validation_button") - self.horizontalLayout_6.addWidget(self.add_network_validation_button, 0, QtCore.Qt.AlignmentFlag.AlignHCenter|QtCore.Qt.AlignmentFlag.AlignTop) - self.add_np_content_layout.addLayout(self.horizontalLayout_6) - self.verticalLayout_10.addLayout(self.add_np_content_layout) - wifi_stacked_page.addWidget(self.add_network_page) - self.saved_connection_page = QtWidgets.QWidget() - self.saved_connection_page.setObjectName("saved_connection_page") - self.verticalLayout_11 = QtWidgets.QVBoxLayout(self.saved_connection_page) - self.verticalLayout_11.setObjectName("verticalLayout_11") - self.horizontalLayout_7 = QtWidgets.QHBoxLayout() - self.horizontalLayout_7.setObjectName("horizontalLayout_7") - spacerItem4 = QtWidgets.QSpacerItem(60, 20, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum) - self.horizontalLayout_7.addItem(spacerItem4) - self.saved_connection_network_name = QtWidgets.QLabel(parent=self.saved_connection_page) - sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.saved_connection_network_name.sizePolicy().hasHeightForWidth()) - self.saved_connection_network_name.setSizePolicy(sizePolicy) - self.saved_connection_network_name.setMaximumSize(QtCore.QSize(16777215, 60)) - font = QtGui.QFont() - font.setPointSize(20) - self.saved_connection_network_name.setFont(font) - self.saved_connection_network_name.setStyleSheet("color: rgb(255, 255, 255);") - self.saved_connection_network_name.setText("") - self.saved_connection_network_name.setScaledContents(False) - self.saved_connection_network_name.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) - self.saved_connection_network_name.setObjectName("saved_connection_network_name") - self.horizontalLayout_7.addWidget(self.saved_connection_network_name) - self.saved_connection_back_button = IconButton(parent=self.saved_connection_page) - self.saved_connection_back_button.setMinimumSize(QtCore.QSize(60, 60)) - self.saved_connection_back_button.setMaximumSize(QtCore.QSize(60, 60)) - self.saved_connection_back_button.setFlat(True) - self.saved_connection_back_button.setProperty("icon_pixmap", QtGui.QPixmap(":/ui/media/btn_icons/back.svg")) - self.saved_connection_back_button.setObjectName("saved_connection_back_button") - self.horizontalLayout_7.addWidget(self.saved_connection_back_button, 0, QtCore.Qt.AlignmentFlag.AlignRight) - self.verticalLayout_11.addLayout(self.horizontalLayout_7) - self.verticalLayout_5 = QtWidgets.QVBoxLayout() - self.verticalLayout_5.setObjectName("verticalLayout_5") - spacerItem5 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum) - self.verticalLayout_5.addItem(spacerItem5) - self.horizontalLayout_9 = QtWidgets.QHBoxLayout() - self.horizontalLayout_9.setObjectName("horizontalLayout_9") - self.verticalLayout_2 = QtWidgets.QVBoxLayout() - self.verticalLayout_2.setObjectName("verticalLayout_2") - self.frame = BlocksCustomFrame(parent=self.saved_connection_page) - sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.frame.sizePolicy().hasHeightForWidth()) - self.frame.setSizePolicy(sizePolicy) - self.frame.setMaximumSize(QtCore.QSize(400, 16777215)) - self.frame.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel) - self.frame.setFrameShadow(QtWidgets.QFrame.Shadow.Raised) - self.frame.setObjectName("frame") - self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.frame) - self.verticalLayout_6.setObjectName("verticalLayout_6") - self.horizontalLayout = QtWidgets.QHBoxLayout() - self.horizontalLayout.setObjectName("horizontalLayout") - self.netlist_strength_label_2 = QtWidgets.QLabel(parent=self.frame) - palette = QtGui.QPalette() - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.WindowText, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Text, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.WindowText, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Text, brush) - brush = QtGui.QBrush(QtGui.QColor(120, 120, 120)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.WindowText, brush) - brush = QtGui.QBrush(QtGui.QColor(120, 120, 120)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Text, brush) - self.netlist_strength_label_2.setPalette(palette) - font = QtGui.QFont() - font.setPointSize(15) - self.netlist_strength_label_2.setFont(font) - self.netlist_strength_label_2.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) - self.netlist_strength_label_2.setObjectName("netlist_strength_label_2") - self.horizontalLayout.addWidget(self.netlist_strength_label_2) - self.saved_connection_signal_strength_info_frame = QtWidgets.QLabel(parent=self.frame) - self.saved_connection_signal_strength_info_frame.setMinimumSize(QtCore.QSize(250, 0)) - font = QtGui.QFont() - font.setPointSize(11) - self.saved_connection_signal_strength_info_frame.setFont(font) - self.saved_connection_signal_strength_info_frame.setStyleSheet("color: rgb(255, 255, 255);") - self.saved_connection_signal_strength_info_frame.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) - self.saved_connection_signal_strength_info_frame.setObjectName("saved_connection_signal_strength_info_frame") - self.horizontalLayout.addWidget(self.saved_connection_signal_strength_info_frame) - self.verticalLayout_6.addLayout(self.horizontalLayout) - self.line_4 = QtWidgets.QFrame(parent=self.frame) - self.line_4.setFrameShape(QtWidgets.QFrame.Shape.HLine) - self.line_4.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken) - self.line_4.setObjectName("line_4") - self.verticalLayout_6.addWidget(self.line_4) - self.horizontalLayout_2 = QtWidgets.QHBoxLayout() - self.horizontalLayout_2.setObjectName("horizontalLayout_2") - self.netlist_security_label_2 = QtWidgets.QLabel(parent=self.frame) - palette = QtGui.QPalette() - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.WindowText, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Text, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.WindowText, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Text, brush) - brush = QtGui.QBrush(QtGui.QColor(120, 120, 120)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.WindowText, brush) - brush = QtGui.QBrush(QtGui.QColor(120, 120, 120)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Text, brush) - self.netlist_security_label_2.setPalette(palette) - font = QtGui.QFont() - font.setPointSize(15) - self.netlist_security_label_2.setFont(font) - self.netlist_security_label_2.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) - self.netlist_security_label_2.setObjectName("netlist_security_label_2") - self.horizontalLayout_2.addWidget(self.netlist_security_label_2) - self.saved_connection_security_type_info_label = QtWidgets.QLabel(parent=self.frame) - self.saved_connection_security_type_info_label.setMinimumSize(QtCore.QSize(250, 0)) - font = QtGui.QFont() - font.setPointSize(11) - self.saved_connection_security_type_info_label.setFont(font) - self.saved_connection_security_type_info_label.setStyleSheet("color: rgb(255, 255, 255);") - self.saved_connection_security_type_info_label.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) - self.saved_connection_security_type_info_label.setObjectName("saved_connection_security_type_info_label") - self.horizontalLayout_2.addWidget(self.saved_connection_security_type_info_label) - self.verticalLayout_6.addLayout(self.horizontalLayout_2) - self.line_5 = QtWidgets.QFrame(parent=self.frame) - self.line_5.setFrameShape(QtWidgets.QFrame.Shape.HLine) - self.line_5.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken) - self.line_5.setObjectName("line_5") - self.verticalLayout_6.addWidget(self.line_5) - self.horizontalLayout_8 = QtWidgets.QHBoxLayout() - self.horizontalLayout_8.setObjectName("horizontalLayout_8") - self.netlist_security_label_4 = QtWidgets.QLabel(parent=self.frame) - palette = QtGui.QPalette() - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.WindowText, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Text, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.WindowText, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Text, brush) - brush = QtGui.QBrush(QtGui.QColor(120, 120, 120)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.WindowText, brush) - brush = QtGui.QBrush(QtGui.QColor(120, 120, 120)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Text, brush) - self.netlist_security_label_4.setPalette(palette) - font = QtGui.QFont() - font.setPointSize(15) - self.netlist_security_label_4.setFont(font) - self.netlist_security_label_4.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) - self.netlist_security_label_4.setObjectName("netlist_security_label_4") - self.horizontalLayout_8.addWidget(self.netlist_security_label_4) - self.sn_info = QtWidgets.QLabel(parent=self.frame) - self.sn_info.setMinimumSize(QtCore.QSize(250, 0)) - font = QtGui.QFont() - font.setPointSize(11) - self.sn_info.setFont(font) - self.sn_info.setStyleSheet("color: rgb(255, 255, 255);") - self.sn_info.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) - self.sn_info.setObjectName("sn_info") - self.horizontalLayout_8.addWidget(self.sn_info) - self.verticalLayout_6.addLayout(self.horizontalLayout_8) - self.verticalLayout_2.addWidget(self.frame) - self.horizontalLayout_9.addLayout(self.verticalLayout_2) - self.frame_8 = BlocksCustomFrame(parent=self.saved_connection_page) - self.frame_8.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel) - self.frame_8.setFrameShadow(QtWidgets.QFrame.Shadow.Raised) - self.frame_8.setObjectName("frame_8") - self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.frame_8) - self.verticalLayout_4.setObjectName("verticalLayout_4") - self.network_activate_btn = BlocksCustomButton(parent=self.frame_8) - self.network_activate_btn.setMinimumSize(QtCore.QSize(250, 80)) - self.network_activate_btn.setMaximumSize(QtCore.QSize(250, 80)) - font = QtGui.QFont() - font.setPointSize(15) - self.network_activate_btn.setFont(font) - self.network_activate_btn.setFlat(True) - self.network_activate_btn.setObjectName("network_activate_btn") - self.verticalLayout_4.addWidget(self.network_activate_btn, 0, QtCore.Qt.AlignmentFlag.AlignHCenter|QtCore.Qt.AlignmentFlag.AlignVCenter) - self.network_details_btn = BlocksCustomButton(parent=self.frame_8) - self.network_details_btn.setMinimumSize(QtCore.QSize(250, 80)) - self.network_details_btn.setMaximumSize(QtCore.QSize(250, 80)) - font = QtGui.QFont() - font.setPointSize(15) - self.network_details_btn.setFont(font) - self.network_details_btn.setFlat(True) - self.network_details_btn.setObjectName("network_details_btn") - self.verticalLayout_4.addWidget(self.network_details_btn, 0, QtCore.Qt.AlignmentFlag.AlignHCenter) - self.network_delete_btn = BlocksCustomButton(parent=self.frame_8) - self.network_delete_btn.setMinimumSize(QtCore.QSize(250, 80)) - self.network_delete_btn.setMaximumSize(QtCore.QSize(250, 80)) - font = QtGui.QFont() - font.setPointSize(15) - self.network_delete_btn.setFont(font) - self.network_delete_btn.setFlat(True) - self.network_delete_btn.setObjectName("network_delete_btn") - self.verticalLayout_4.addWidget(self.network_delete_btn, 0, QtCore.Qt.AlignmentFlag.AlignHCenter|QtCore.Qt.AlignmentFlag.AlignVCenter) - self.horizontalLayout_9.addWidget(self.frame_8) - self.verticalLayout_5.addLayout(self.horizontalLayout_9) - self.verticalLayout_11.addLayout(self.verticalLayout_5) - wifi_stacked_page.addWidget(self.saved_connection_page) - self.saved_details_page = QtWidgets.QWidget() - self.saved_details_page.setObjectName("saved_details_page") - self.verticalLayout_19 = QtWidgets.QVBoxLayout(self.saved_details_page) - self.verticalLayout_19.setObjectName("verticalLayout_19") - self.horizontalLayout_14 = QtWidgets.QHBoxLayout() - self.horizontalLayout_14.setObjectName("horizontalLayout_14") - spacerItem6 = QtWidgets.QSpacerItem(60, 60, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum) - self.horizontalLayout_14.addItem(spacerItem6) - self.snd_name = QtWidgets.QLabel(parent=self.saved_details_page) - sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.snd_name.sizePolicy().hasHeightForWidth()) - self.snd_name.setSizePolicy(sizePolicy) - self.snd_name.setMaximumSize(QtCore.QSize(16777215, 60)) - palette = QtGui.QPalette() - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.WindowText, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Text, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.WindowText, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Text, brush) - brush = QtGui.QBrush(QtGui.QColor(120, 120, 120)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.WindowText, brush) - brush = QtGui.QBrush(QtGui.QColor(120, 120, 120)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Text, brush) - self.snd_name.setPalette(palette) - font = QtGui.QFont() - font.setPointSize(20) - self.snd_name.setFont(font) - self.snd_name.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) - self.snd_name.setObjectName("snd_name") - self.horizontalLayout_14.addWidget(self.snd_name) - self.snd_back = IconButton(parent=self.saved_details_page) - self.snd_back.setMinimumSize(QtCore.QSize(60, 60)) - self.snd_back.setMaximumSize(QtCore.QSize(60, 60)) - self.snd_back.setFlat(True) - self.snd_back.setProperty("icon_pixmap", QtGui.QPixmap(":/ui/media/btn_icons/back.svg")) - self.snd_back.setObjectName("snd_back") - self.horizontalLayout_14.addWidget(self.snd_back) - self.verticalLayout_19.addLayout(self.horizontalLayout_14) - self.verticalLayout_8 = QtWidgets.QVBoxLayout() - self.verticalLayout_8.setObjectName("verticalLayout_8") - spacerItem7 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum) - self.verticalLayout_8.addItem(spacerItem7) - self.frame_9 = BlocksCustomFrame(parent=self.saved_details_page) - sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.frame_9.sizePolicy().hasHeightForWidth()) - self.frame_9.setSizePolicy(sizePolicy) - self.frame_9.setMinimumSize(QtCore.QSize(0, 70)) - self.frame_9.setMaximumSize(QtCore.QSize(16777215, 70)) - self.frame_9.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel) - self.frame_9.setFrameShadow(QtWidgets.QFrame.Shadow.Raised) - self.frame_9.setObjectName("frame_9") - self.layoutWidget_8 = QtWidgets.QWidget(parent=self.frame_9) - self.layoutWidget_8.setGeometry(QtCore.QRect(0, 0, 776, 62)) - self.layoutWidget_8.setObjectName("layoutWidget_8") - self.horizontalLayout_10 = QtWidgets.QHBoxLayout(self.layoutWidget_8) - self.horizontalLayout_10.setContentsMargins(0, 0, 0, 0) - self.horizontalLayout_10.setObjectName("horizontalLayout_10") - self.saved_connection_change_password_label_3 = QtWidgets.QLabel(parent=self.layoutWidget_8) - palette = QtGui.QPalette() - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.WindowText, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Text, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.WindowText, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Text, brush) - brush = QtGui.QBrush(QtGui.QColor(120, 120, 120)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.WindowText, brush) - brush = QtGui.QBrush(QtGui.QColor(120, 120, 120)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Text, brush) - self.saved_connection_change_password_label_3.setPalette(palette) - font = QtGui.QFont() - font.setPointSize(15) - self.saved_connection_change_password_label_3.setFont(font) - self.saved_connection_change_password_label_3.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) - self.saved_connection_change_password_label_3.setObjectName("saved_connection_change_password_label_3") - self.horizontalLayout_10.addWidget(self.saved_connection_change_password_label_3, 0, QtCore.Qt.AlignmentFlag.AlignHCenter|QtCore.Qt.AlignmentFlag.AlignVCenter) - self.saved_connection_change_password_field = BlocksCustomLinEdit(parent=self.layoutWidget_8) - self.saved_connection_change_password_field.setMinimumSize(QtCore.QSize(500, 60)) - self.saved_connection_change_password_field.setMaximumSize(QtCore.QSize(500, 16777215)) - font = QtGui.QFont() - font.setPointSize(12) - self.saved_connection_change_password_field.setFont(font) - self.saved_connection_change_password_field.setObjectName("saved_connection_change_password_field") - self.horizontalLayout_10.addWidget(self.saved_connection_change_password_field, 0, QtCore.Qt.AlignmentFlag.AlignHCenter) - self.saved_connection_change_password_view = IconButton(parent=self.layoutWidget_8) - self.saved_connection_change_password_view.setMinimumSize(QtCore.QSize(60, 60)) - self.saved_connection_change_password_view.setMaximumSize(QtCore.QSize(60, 60)) - self.saved_connection_change_password_view.setFlat(True) - self.saved_connection_change_password_view.setProperty("icon_pixmap", QtGui.QPixmap(":/ui/media/btn_icons/unsee.svg")) - self.saved_connection_change_password_view.setObjectName("saved_connection_change_password_view") - self.horizontalLayout_10.addWidget(self.saved_connection_change_password_view, 0, QtCore.Qt.AlignmentFlag.AlignHCenter|QtCore.Qt.AlignmentFlag.AlignVCenter) - self.verticalLayout_8.addWidget(self.frame_9) - self.horizontalLayout_13 = QtWidgets.QHBoxLayout() - self.horizontalLayout_13.setObjectName("horizontalLayout_13") - self.verticalLayout_13 = QtWidgets.QVBoxLayout() - self.verticalLayout_13.setObjectName("verticalLayout_13") - self.frame_12 = BlocksCustomFrame(parent=self.saved_details_page) - sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.frame_12.sizePolicy().hasHeightForWidth()) - self.frame_12.setSizePolicy(sizePolicy) - self.frame_12.setMinimumSize(QtCore.QSize(400, 160)) - self.frame_12.setMaximumSize(QtCore.QSize(400, 99999)) - self.frame_12.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel) - self.frame_12.setFrameShadow(QtWidgets.QFrame.Shadow.Raised) - self.frame_12.setObjectName("frame_12") - self.verticalLayout_17 = QtWidgets.QVBoxLayout(self.frame_12) - self.verticalLayout_17.setObjectName("verticalLayout_17") - spacerItem8 = QtWidgets.QSpacerItem(10, 10, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum) - self.verticalLayout_17.addItem(spacerItem8) - self.horizontalLayout_4 = QtWidgets.QHBoxLayout() - self.horizontalLayout_4.setObjectName("horizontalLayout_4") - self.low_priority_btn = BlocksCustomCheckButton(parent=self.frame_12) - self.low_priority_btn.setMinimumSize(QtCore.QSize(100, 100)) - self.low_priority_btn.setMaximumSize(QtCore.QSize(100, 100)) - self.low_priority_btn.setCheckable(True) - self.low_priority_btn.setAutoExclusive(True) - self.low_priority_btn.setFlat(True) - self.low_priority_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/ui/media/btn_icons/indf_svg.svg")) - self.low_priority_btn.setObjectName("low_priority_btn") - self.priority_btn_group = QtWidgets.QButtonGroup(wifi_stacked_page) - self.priority_btn_group.setObjectName("priority_btn_group") - self.priority_btn_group.addButton(self.low_priority_btn) - self.horizontalLayout_4.addWidget(self.low_priority_btn) - self.med_priority_btn = BlocksCustomCheckButton(parent=self.frame_12) - self.med_priority_btn.setMinimumSize(QtCore.QSize(100, 100)) - self.med_priority_btn.setMaximumSize(QtCore.QSize(100, 100)) - self.med_priority_btn.setCheckable(True) - self.med_priority_btn.setChecked(True) - self.med_priority_btn.setAutoExclusive(True) - self.med_priority_btn.setFlat(True) - self.med_priority_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/ui/media/btn_icons/indf_svg.svg")) - self.med_priority_btn.setObjectName("med_priority_btn") - self.priority_btn_group.addButton(self.med_priority_btn) - self.horizontalLayout_4.addWidget(self.med_priority_btn) - self.high_priority_btn = BlocksCustomCheckButton(parent=self.frame_12) - self.high_priority_btn.setMinimumSize(QtCore.QSize(100, 100)) - self.high_priority_btn.setMaximumSize(QtCore.QSize(100, 100)) - self.high_priority_btn.setCheckable(True) - self.high_priority_btn.setChecked(False) - self.high_priority_btn.setAutoExclusive(True) - self.high_priority_btn.setFlat(True) - self.high_priority_btn.setProperty("icon_pixmap", QtGui.QPixmap(":/ui/media/btn_icons/indf_svg.svg")) - self.high_priority_btn.setObjectName("high_priority_btn") - self.priority_btn_group.addButton(self.high_priority_btn) - self.horizontalLayout_4.addWidget(self.high_priority_btn) - self.verticalLayout_17.addLayout(self.horizontalLayout_4) - self.verticalLayout_13.addWidget(self.frame_12, 0, QtCore.Qt.AlignmentFlag.AlignHCenter|QtCore.Qt.AlignmentFlag.AlignVCenter) - self.horizontalLayout_13.addLayout(self.verticalLayout_13) - self.verticalLayout_8.addLayout(self.horizontalLayout_13) - self.verticalLayout_19.addLayout(self.verticalLayout_8) - wifi_stacked_page.addWidget(self.saved_details_page) - self.hotspot_page = QtWidgets.QWidget() - self.hotspot_page.setObjectName("hotspot_page") - self.verticalLayout_12 = QtWidgets.QVBoxLayout(self.hotspot_page) - self.verticalLayout_12.setObjectName("verticalLayout_12") - self.hospot_page_header_layout = QtWidgets.QHBoxLayout() - self.hospot_page_header_layout.setObjectName("hospot_page_header_layout") - spacerItem9 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum) - self.hospot_page_header_layout.addItem(spacerItem9) - self.hotspot_header_title = QtWidgets.QLabel(parent=self.hotspot_page) - palette = QtGui.QPalette() - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.WindowText, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Text, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.WindowText, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Text, brush) - brush = QtGui.QBrush(QtGui.QColor(120, 120, 120)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.WindowText, brush) - brush = QtGui.QBrush(QtGui.QColor(120, 120, 120)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Text, brush) - self.hotspot_header_title.setPalette(palette) - font = QtGui.QFont() - font.setPointSize(20) - self.hotspot_header_title.setFont(font) - self.hotspot_header_title.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) - self.hotspot_header_title.setObjectName("hotspot_header_title") - self.hospot_page_header_layout.addWidget(self.hotspot_header_title) - self.hotspot_back_button = IconButton(parent=self.hotspot_page) - self.hotspot_back_button.setMinimumSize(QtCore.QSize(60, 60)) - self.hotspot_back_button.setMaximumSize(QtCore.QSize(60, 60)) - self.hotspot_back_button.setFlat(True) - self.hotspot_back_button.setProperty("icon_pixmap", QtGui.QPixmap(":/ui/media/btn_icons/back.svg")) - self.hotspot_back_button.setObjectName("hotspot_back_button") - self.hospot_page_header_layout.addWidget(self.hotspot_back_button) - self.verticalLayout_12.addLayout(self.hospot_page_header_layout) - self.hotspot_page_content_layout = QtWidgets.QVBoxLayout() - self.hotspot_page_content_layout.setContentsMargins(-1, 5, -1, 5) - self.hotspot_page_content_layout.setObjectName("hotspot_page_content_layout") - spacerItem10 = QtWidgets.QSpacerItem(20, 50, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum) - self.hotspot_page_content_layout.addItem(spacerItem10) - self.frame_6 = BlocksCustomFrame(parent=self.hotspot_page) - sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.frame_6.sizePolicy().hasHeightForWidth()) - self.frame_6.setSizePolicy(sizePolicy) - self.frame_6.setMinimumSize(QtCore.QSize(70, 80)) - self.frame_6.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel) - self.frame_6.setFrameShadow(QtWidgets.QFrame.Shadow.Raised) - self.frame_6.setObjectName("frame_6") - self.layoutWidget_6 = QtWidgets.QWidget(parent=self.frame_6) - self.layoutWidget_6.setGeometry(QtCore.QRect(0, 10, 776, 61)) - self.layoutWidget_6.setObjectName("layoutWidget_6") - self.horizontalLayout_11 = QtWidgets.QHBoxLayout(self.layoutWidget_6) - self.horizontalLayout_11.setContentsMargins(0, 0, 0, 0) - self.horizontalLayout_11.setObjectName("horizontalLayout_11") - self.hotspot_info_name_label = QtWidgets.QLabel(parent=self.layoutWidget_6) - sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Maximum) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.hotspot_info_name_label.sizePolicy().hasHeightForWidth()) - self.hotspot_info_name_label.setSizePolicy(sizePolicy) - self.hotspot_info_name_label.setMinimumSize(QtCore.QSize(0, 0)) - self.hotspot_info_name_label.setMaximumSize(QtCore.QSize(150, 16777215)) - palette = QtGui.QPalette() - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.WindowText, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Text, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.WindowText, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Text, brush) - brush = QtGui.QBrush(QtGui.QColor(120, 120, 120)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.WindowText, brush) - brush = QtGui.QBrush(QtGui.QColor(120, 120, 120)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Text, brush) - self.hotspot_info_name_label.setPalette(palette) - font = QtGui.QFont() - font.setFamily("Momcake") - font.setPointSize(10) - self.hotspot_info_name_label.setFont(font) - self.hotspot_info_name_label.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) - self.hotspot_info_name_label.setObjectName("hotspot_info_name_label") - self.horizontalLayout_11.addWidget(self.hotspot_info_name_label) - self.hotspot_name_input_field = BlocksCustomLinEdit(parent=self.layoutWidget_6) - sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.hotspot_name_input_field.sizePolicy().hasHeightForWidth()) - self.hotspot_name_input_field.setSizePolicy(sizePolicy) - self.hotspot_name_input_field.setMinimumSize(QtCore.QSize(500, 40)) - self.hotspot_name_input_field.setMaximumSize(QtCore.QSize(500, 60)) - font = QtGui.QFont() - font.setPointSize(12) - self.hotspot_name_input_field.setFont(font) - self.hotspot_name_input_field.setEchoMode(QtWidgets.QLineEdit.EchoMode.Password) - self.hotspot_name_input_field.setObjectName("hotspot_name_input_field") - self.horizontalLayout_11.addWidget(self.hotspot_name_input_field, 0, QtCore.Qt.AlignmentFlag.AlignHCenter) - spacerItem11 = QtWidgets.QSpacerItem(60, 20, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum) - self.horizontalLayout_11.addItem(spacerItem11) - self.hotspot_page_content_layout.addWidget(self.frame_6) - spacerItem12 = QtWidgets.QSpacerItem(773, 128, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Minimum) - self.hotspot_page_content_layout.addItem(spacerItem12) - self.frame_7 = BlocksCustomFrame(parent=self.hotspot_page) - sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.frame_7.sizePolicy().hasHeightForWidth()) - self.frame_7.setSizePolicy(sizePolicy) - self.frame_7.setMinimumSize(QtCore.QSize(0, 80)) - self.frame_7.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel) - self.frame_7.setFrameShadow(QtWidgets.QFrame.Shadow.Raised) - self.frame_7.setObjectName("frame_7") - self.layoutWidget_7 = QtWidgets.QWidget(parent=self.frame_7) - self.layoutWidget_7.setGeometry(QtCore.QRect(0, 10, 776, 62)) - self.layoutWidget_7.setObjectName("layoutWidget_7") - self.horizontalLayout_12 = QtWidgets.QHBoxLayout(self.layoutWidget_7) - self.horizontalLayout_12.setContentsMargins(0, 0, 0, 0) - self.horizontalLayout_12.setObjectName("horizontalLayout_12") - self.hotspot_info_password_label = QtWidgets.QLabel(parent=self.layoutWidget_7) - sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Maximum) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.hotspot_info_password_label.sizePolicy().hasHeightForWidth()) - self.hotspot_info_password_label.setSizePolicy(sizePolicy) - self.hotspot_info_password_label.setMinimumSize(QtCore.QSize(0, 0)) - self.hotspot_info_password_label.setMaximumSize(QtCore.QSize(150, 16777215)) - palette = QtGui.QPalette() - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.WindowText, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Button, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Light, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Midlight, brush) - brush = QtGui.QBrush(QtGui.QColor(127, 127, 127)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Dark, brush) - brush = QtGui.QBrush(QtGui.QColor(170, 170, 170)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Mid, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Text, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.BrightText, brush) - brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.ButtonText, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Base, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Window, brush) - brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.Shadow, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.AlternateBase, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 220)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.ToolTipBase, brush) - brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Active, QtGui.QPalette.ColorRole.ToolTipText, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.WindowText, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Button, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Light, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Midlight, brush) - brush = QtGui.QBrush(QtGui.QColor(127, 127, 127)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Dark, brush) - brush = QtGui.QBrush(QtGui.QColor(170, 170, 170)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Mid, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Text, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.BrightText, brush) - brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.ButtonText, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Base, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Window, brush) - brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.Shadow, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.AlternateBase, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 220)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.ToolTipBase, brush) - brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Inactive, QtGui.QPalette.ColorRole.ToolTipText, brush) - brush = QtGui.QBrush(QtGui.QColor(127, 127, 127)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.WindowText, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Button, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Light, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Midlight, brush) - brush = QtGui.QBrush(QtGui.QColor(127, 127, 127)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Dark, brush) - brush = QtGui.QBrush(QtGui.QColor(170, 170, 170)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Mid, brush) - brush = QtGui.QBrush(QtGui.QColor(127, 127, 127)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Text, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.BrightText, brush) - brush = QtGui.QBrush(QtGui.QColor(127, 127, 127)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.ButtonText, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Base, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Window, brush) - brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.Shadow, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.AlternateBase, brush) - brush = QtGui.QBrush(QtGui.QColor(255, 255, 220)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.ToolTipBase, brush) - brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) - brush.setStyle(QtCore.Qt.BrushStyle.SolidPattern) - palette.setBrush(QtGui.QPalette.ColorGroup.Disabled, QtGui.QPalette.ColorRole.ToolTipText, brush) - self.hotspot_info_password_label.setPalette(palette) - font = QtGui.QFont() - font.setFamily("Momcake") - font.setPointSize(10) - self.hotspot_info_password_label.setFont(font) - self.hotspot_info_password_label.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) - self.hotspot_info_password_label.setObjectName("hotspot_info_password_label") - self.horizontalLayout_12.addWidget(self.hotspot_info_password_label) - self.hotspot_password_input_field = BlocksCustomLinEdit(parent=self.layoutWidget_7) - sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.hotspot_password_input_field.sizePolicy().hasHeightForWidth()) - self.hotspot_password_input_field.setSizePolicy(sizePolicy) - self.hotspot_password_input_field.setMinimumSize(QtCore.QSize(500, 40)) - self.hotspot_password_input_field.setMaximumSize(QtCore.QSize(500, 60)) - font = QtGui.QFont() - font.setPointSize(12) - self.hotspot_password_input_field.setFont(font) - self.hotspot_password_input_field.setEchoMode(QtWidgets.QLineEdit.EchoMode.Password) - self.hotspot_password_input_field.setObjectName("hotspot_password_input_field") - self.horizontalLayout_12.addWidget(self.hotspot_password_input_field, 0, QtCore.Qt.AlignmentFlag.AlignHCenter) - self.hotspot_password_view_button = IconButton(parent=self.layoutWidget_7) - self.hotspot_password_view_button.setMinimumSize(QtCore.QSize(60, 60)) - self.hotspot_password_view_button.setMaximumSize(QtCore.QSize(60, 60)) - self.hotspot_password_view_button.setFlat(True) - self.hotspot_password_view_button.setProperty("icon_pixmap", QtGui.QPixmap(":/ui/media/btn_icons/unsee.svg")) - self.hotspot_password_view_button.setObjectName("hotspot_password_view_button") - self.horizontalLayout_12.addWidget(self.hotspot_password_view_button) - self.hotspot_page_content_layout.addWidget(self.frame_7) - self.hotspot_change_confirm = BlocksCustomButton(parent=self.hotspot_page) - self.hotspot_change_confirm.setMinimumSize(QtCore.QSize(200, 80)) - self.hotspot_change_confirm.setMaximumSize(QtCore.QSize(250, 100)) - font = QtGui.QFont() - font.setPointSize(18) - font.setBold(True) - font.setWeight(75) - self.hotspot_change_confirm.setFont(font) - self.hotspot_change_confirm.setProperty("icon_pixmap", QtGui.QPixmap(":/ui/media/btn_icons/save.svg")) - self.hotspot_change_confirm.setObjectName("hotspot_change_confirm") - self.hotspot_page_content_layout.addWidget(self.hotspot_change_confirm, 0, QtCore.Qt.AlignmentFlag.AlignHCenter|QtCore.Qt.AlignmentFlag.AlignVCenter) - self.verticalLayout_12.addLayout(self.hotspot_page_content_layout) - wifi_stacked_page.addWidget(self.hotspot_page) - - self.retranslateUi(wifi_stacked_page) - wifi_stacked_page.setCurrentIndex(2) - QtCore.QMetaObject.connectSlotsByName(wifi_stacked_page) - - def retranslateUi(self, wifi_stacked_page): - _translate = QtCore.QCoreApplication.translate - wifi_stacked_page.setWindowTitle(_translate("wifi_stacked_page", "StackedWidget")) - self.network_main_title.setText("Networks") - self.netlist_strength_label.setText( "Signal\n" -"Strength") - self.netlist_strength.setText( "TextLabel") - self.netlist_security_label.setText( "Security\n" -"Type") - self.netlist_security.setText("TextLabel") - self.mn_info_box.setText( "No network connection.\n" -"\n" -"Try connecting to Wi-Fi \n" -"or turn on the hotspot\n" -"using the buttons on the side.") - self.wifi_button.setText( "Wi-Fi") - self.hotspot_button.setText( "Hotspot") - self.rescan_button.setText( "Reload") - self.rescan_button.setProperty("button_type", _translate("wifi_stacked_page", "icon")) - self.network_list_title.setText("Wi-Fi List") - self.nl_back_button.setText("Back") - self.nl_back_button.setProperty("class", _translate("wifi_stacked_page", "back_btn")) - self.nl_back_button.setProperty("button_type", _translate("wifi_stacked_page", "icon")) - self.add_network_network_label.setText("TextLabel") - self.add_network_page_backButton.setText("Back") - self.add_network_page_backButton.setProperty("class", _translate("wifi_stacked_page", "back_btn")) - self.add_network_page_backButton.setProperty("button_type", _translate("wifi_stacked_page", "icon")) - self.add_network_password_label.setText("Password") - self.add_network_password_view.setText("View") - self.add_network_password_view.setProperty("class", _translate("wifi_stacked_page", "back_btn")) - self.add_network_password_view.setProperty("button_type", _translate("wifi_stacked_page", "icon")) - self.add_network_validation_button.setText(_translate("wifi_stacked_page", "Activate")) - self.saved_connection_back_button.setText(_translate("wifi_stacked_page", "Back")) - self.saved_connection_back_button.setProperty("class", _translate("wifi_stacked_page", "back_btn")) - self.saved_connection_back_button.setProperty("button_type", _translate("wifi_stacked_page", "icon")) - self.netlist_strength_label_2.setText(_translate("wifi_stacked_page", "Signal\n" -"Strength")) - self.saved_connection_signal_strength_info_frame.setText(_translate("wifi_stacked_page", "TextLabel")) - self.netlist_security_label_2.setText(_translate("wifi_stacked_page", "Security\n" -"Type")) - self.saved_connection_security_type_info_label.setText(_translate("wifi_stacked_page", "TextLabel")) - self.netlist_security_label_4.setText(_translate("wifi_stacked_page", "Status")) - self.sn_info.setText(_translate("wifi_stacked_page", "TextLabel")) - self.network_activate_btn.setText(_translate("wifi_stacked_page", "Connect")) - self.network_details_btn.setText(_translate("wifi_stacked_page", "Details")) - self.network_delete_btn.setText(_translate("wifi_stacked_page", "Forget")) - self.snd_name.setText(_translate("wifi_stacked_page", "SSID")) - self.snd_back.setText(_translate("wifi_stacked_page", "Back")) - self.snd_back.setProperty("class", _translate("wifi_stacked_page", "back_btn")) - self.snd_back.setProperty("button_type", _translate("wifi_stacked_page", "icon")) - self.saved_connection_change_password_label_3.setText(_translate("wifi_stacked_page", "Change\n" -"Password")) - self.saved_connection_change_password_view.setText(_translate("wifi_stacked_page", "View")) - self.saved_connection_change_password_view.setProperty("class", _translate("wifi_stacked_page", "back_btn")) - self.saved_connection_change_password_view.setProperty("button_type", _translate("wifi_stacked_page", "icon")) - self.frame_12.setProperty("text", _translate("wifi_stacked_page", "Network priority")) - self.low_priority_btn.setText(_translate("wifi_stacked_page", "Low")) - self.low_priority_btn.setProperty("class", _translate("wifi_stacked_page", "back_btn")) - self.low_priority_btn.setProperty("button_type", _translate("wifi_stacked_page", "icon")) - self.med_priority_btn.setText(_translate("wifi_stacked_page", "Medium")) - self.med_priority_btn.setProperty("class", _translate("wifi_stacked_page", "back_btn")) - self.med_priority_btn.setProperty("button_type", _translate("wifi_stacked_page", "icon")) - self.high_priority_btn.setText(_translate("wifi_stacked_page", "High")) - self.high_priority_btn.setProperty("class", _translate("wifi_stacked_page", "back_btn")) - self.high_priority_btn.setProperty("button_type", _translate("wifi_stacked_page", "icon")) - self.hotspot_header_title.setText(_translate("wifi_stacked_page", "Hotspot")) - self.hotspot_back_button.setText(_translate("wifi_stacked_page", "Back")) - self.hotspot_back_button.setProperty("class", _translate("wifi_stacked_page", "back_btn")) - self.hotspot_back_button.setProperty("button_type", _translate("wifi_stacked_page", "icon")) - self.hotspot_info_name_label.setText("Hotspot Name: ") - self.hotspot_info_password_label.setText("Hotspot Password:") - self.hotspot_password_view_button.setText("View") - self.hotspot_password_view_button.setProperty("class", _translate("wifi_stacked_page", "back_btn")) - self.hotspot_password_view_button.setProperty("button_type", _translate("wifi_stacked_page", "icon")) - self.hotspot_change_confirm.setText("Save") -from lib.panels.widgets.loadWidget import LoadingOverlayWidget -from lib.utils.blocks_Scrollbar import CustomScrollBar -from lib.utils.blocks_button import BlocksCustomButton -from lib.utils.blocks_frame import BlocksCustomFrame -from lib.utils.blocks_linedit import BlocksCustomLinEdit -from lib.utils.blocks_togglebutton import NetworkWidgetbuttons -from lib.utils.check_button import BlocksCustomCheckButton -from lib.utils.icon_button import IconButton