Untitled
unknown
python
3 years ago
13 kB
6
Indexable
Never
# -*- coding: utf-8 -*- ################################################################################ ## Form generated from reading UI file 'main_window.ui' ## ## Created by: Qt User Interface Compiler version 6.0.0 ## ## WARNING! All changes made in this file will be lost when recompiling UI file! ################################################################################ from PySide6.QtCore import * from PySide6.QtGui import * from PySide6.QtWidgets import * class Ui_MainWindow(object): def setupUi(self, MainWindow): if not MainWindow.objectName(): MainWindow.setObjectName("MainWindow") MainWindow.resize(692, 373) self.centralwidget = QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.centralwidget.setStyleSheet( "#buttonPasswords, #buttonAddNew, #buttonGenerate, #buttonSecurity {\n" " text-align: left;\n" " padding-left: 10px;\n" " padding-right: 10px;\n" "}" ) self.verticalLayout_2 = QVBoxLayout(self.centralwidget) self.verticalLayout_2.setSpacing(0) self.verticalLayout_2.setObjectName("verticalLayout_2") self.verticalLayout_2.setContentsMargins(0, 0, 0, 0) self.frame = QFrame(self.centralwidget) self.frame.setObjectName("frame") self.frame.setFrameShape(QFrame.StyledPanel) self.frame.setFrameShadow(QFrame.Raised) self.horizontalLayout_2 = QHBoxLayout(self.frame) self.horizontalLayout_2.setSpacing(0) self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0) self.frame_sidebar = QFrame(self.frame) self.frame_sidebar.setObjectName("frame_sidebar") self.frame_sidebar.setMinimumSize(QSize(140, 0)) self.frame_sidebar.setMaximumSize(QSize(140, 16777215)) self.frame_sidebar.setFrameShape(QFrame.StyledPanel) self.frame_sidebar.setFrameShadow(QFrame.Sunken) self.frame_2 = QFrame(self.frame_sidebar) self.frame_2.setObjectName("frame_2") self.frame_2.setGeometry(QRect(0, 110, 140, 160)) self.frame_2.setMinimumSize(QSize(140, 160)) self.frame_2.setMaximumSize(QSize(140, 160)) self.frame_2.setFrameShape(QFrame.NoFrame) self.verticalLayout = QVBoxLayout(self.frame_2) self.verticalLayout.setSpacing(0) self.verticalLayout.setObjectName("verticalLayout") self.verticalLayout.setContentsMargins(0, 0, 0, 0) self.buttonPasswords = QPushButton(self.frame_2) self.buttonPasswords.setObjectName("buttonPasswords") sizePolicy = QSizePolicy(QSizePolicy.Minimum, QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.buttonPasswords.sizePolicy().hasHeightForWidth() ) self.buttonPasswords.setSizePolicy(sizePolicy) self.buttonPasswords.setMinimumSize(QSize(0, 30)) font = QFont() font.setFamily("Roboto") self.buttonPasswords.setFont(font) self.buttonPasswords.setLayoutDirection(Qt.LeftToRight) self.buttonPasswords.setAutoFillBackground(False) self.buttonPasswords.setStyleSheet("") icon = QIcon() icon.addFile("icons/lock.svg", QSize(), QIcon.Normal, QIcon.Off) self.buttonPasswords.setIcon(icon) self.buttonPasswords.setIconSize(QSize(14, 14)) self.buttonPasswords.setCheckable(False) self.buttonPasswords.setChecked(False) self.buttonPasswords.setAutoRepeat(False) self.buttonPasswords.setAutoExclusive(False) self.buttonPasswords.setFlat(False) self.verticalLayout.addWidget(self.buttonPasswords) self.buttonAddNew = QPushButton(self.frame_2) self.buttonAddNew.setObjectName("buttonAddNew") sizePolicy.setHeightForWidth( self.buttonAddNew.sizePolicy().hasHeightForWidth() ) self.buttonAddNew.setSizePolicy(sizePolicy) self.buttonAddNew.setMinimumSize(QSize(0, 30)) self.buttonAddNew.setFont(font) self.buttonAddNew.setStyleSheet("") icon1 = QIcon() icon1.addFile("icons/add.svg", QSize(), QIcon.Normal, QIcon.Off) self.buttonAddNew.setIcon(icon1) self.buttonAddNew.setIconSize(QSize(14, 14)) self.verticalLayout.addWidget(self.buttonAddNew) self.buttonGenerate = QPushButton(self.frame_2) self.buttonGenerate.setObjectName("buttonGenerate") sizePolicy.setHeightForWidth( self.buttonGenerate.sizePolicy().hasHeightForWidth() ) self.buttonGenerate.setSizePolicy(sizePolicy) self.buttonGenerate.setMinimumSize(QSize(0, 30)) self.buttonGenerate.setFont(font) self.buttonGenerate.setStyleSheet("") icon2 = QIcon() icon2.addFile("icons/refresh.svg", QSize(), QIcon.Normal, QIcon.Off) self.buttonGenerate.setIcon(icon2) self.buttonGenerate.setIconSize(QSize(14, 14)) self.verticalLayout.addWidget(self.buttonGenerate) self.buttonSecurity = QPushButton(self.frame_2) self.buttonSecurity.setObjectName("buttonSecurity") sizePolicy.setHeightForWidth( self.buttonSecurity.sizePolicy().hasHeightForWidth() ) self.buttonSecurity.setSizePolicy(sizePolicy) self.buttonSecurity.setMinimumSize(QSize(0, 30)) self.buttonSecurity.setFont(font) self.buttonSecurity.setStyleSheet("") icon3 = QIcon() icon3.addFile("icons/security.svg", QSize(), QIcon.Normal, QIcon.Off) self.buttonSecurity.setIcon(icon3) self.buttonSecurity.setIconSize(QSize(14, 14)) self.verticalLayout.addWidget(self.buttonSecurity) self.label = QLabel(self.frame_sidebar) self.label.setObjectName("label") self.label.setGeometry(QRect(10, 30, 121, 41)) font1 = QFont() font1.setFamily("Roboto Medium") font1.setPointSize(10) font1.setItalic(False) font1.setUnderline(False) font1.setStrikeOut(False) self.label.setFont(font1) self.label.setAlignment(Qt.AlignCenter) self.label.setWordWrap(True) self.horizontalLayout_2.addWidget(self.frame_sidebar) self.frame_main = QFrame(self.frame) self.frame_main.setObjectName("frame_main") self.frame_main.setFrameShape(QFrame.StyledPanel) self.frame_main.setFrameShadow(QFrame.Sunken) self.framePasswords = QFrame(self.frame_main) self.framePasswords.setObjectName("framePasswords") self.framePasswords.setGeometry(QRect(0, 50, 511, 280)) self.framePasswords.setFrameShape(QFrame.NoFrame) self.framePasswords.setFrameShadow(QFrame.Raised) self.verticalLayout_3 = QVBoxLayout(self.framePasswords) self.verticalLayout_3.setSpacing(10) self.verticalLayout_3.setObjectName("verticalLayout_3") self.verticalLayout_3.setContentsMargins(40, 10, 0, 0) self.editSearch = QLineEdit(self.framePasswords) self.editSearch.setObjectName("editSearch") self.editSearch.setMinimumSize(QSize(0, 23)) self.editSearch.setMaximumSize(QSize(16777215, 23)) self.editSearch.setFont(font) self.editSearch.setFrame(False) self.editSearch.setClearButtonEnabled(True) self.verticalLayout_3.addWidget(self.editSearch) self.tablePasswords = QTableWidget(self.framePasswords) if self.tablePasswords.columnCount() < 4: self.tablePasswords.setColumnCount(4) __qtablewidgetitem = QTableWidgetItem() self.tablePasswords.setHorizontalHeaderItem(0, __qtablewidgetitem) __qtablewidgetitem1 = QTableWidgetItem() self.tablePasswords.setHorizontalHeaderItem(1, __qtablewidgetitem1) __qtablewidgetitem2 = QTableWidgetItem() self.tablePasswords.setHorizontalHeaderItem(2, __qtablewidgetitem2) __qtablewidgetitem3 = QTableWidgetItem() self.tablePasswords.setHorizontalHeaderItem(3, __qtablewidgetitem3) self.tablePasswords.setObjectName("tablePasswords") self.tablePasswords.setMinimumSize(QSize(403, 0)) font2 = QFont() font2.setFamily("Roboto") font2.setPointSize(8) font2.setUnderline(False) self.tablePasswords.setFont(font2) self.tablePasswords.setFocusPolicy(Qt.ClickFocus) self.tablePasswords.setContextMenuPolicy(Qt.NoContextMenu) self.tablePasswords.setFrameShape(QFrame.Box) self.tablePasswords.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff) self.tablePasswords.setSizeAdjustPolicy( QAbstractScrollArea.AdjustIgnored ) self.tablePasswords.setShowGrid(True) self.tablePasswords.setGridStyle(Qt.SolidLine) self.tablePasswords.setCornerButtonEnabled(True) self.verticalLayout_3.addWidget(self.tablePasswords) self.frame_4 = QFrame(self.framePasswords) self.frame_4.setObjectName("frame_4") self.frame_4.setFrameShape(QFrame.NoFrame) self.frame_4.setFrameShadow(QFrame.Raised) self.gridLayout = QGridLayout(self.frame_4) self.gridLayout.setObjectName("gridLayout") self.gridLayout.setHorizontalSpacing(10) self.gridLayout.setVerticalSpacing(0) self.gridLayout.setContentsMargins(0, 0, 0, 0) self.buttonCopy = QPushButton(self.frame_4) self.buttonCopy.setObjectName("buttonCopy") self.buttonCopy.setFont(font) icon4 = QIcon() icon4.addFile("icons/copy.svg", QSize(), QIcon.Normal, QIcon.Off) self.buttonCopy.setIcon(icon4) self.buttonCopy.setIconSize(QSize(13, 13)) self.gridLayout.addWidget(self.buttonCopy, 0, 0, 1, 1) self.buttonEdit = QPushButton(self.frame_4) self.buttonEdit.setObjectName("buttonEdit") self.buttonEdit.setFont(font) icon5 = QIcon() icon5.addFile("icons/edit.svg", QSize(), QIcon.Normal, QIcon.Off) self.buttonEdit.setIcon(icon5) self.buttonEdit.setIconSize(QSize(13, 13)) self.gridLayout.addWidget(self.buttonEdit, 0, 1, 1, 1) self.buttonDelete = QPushButton(self.frame_4) self.buttonDelete.setObjectName("buttonDelete") self.buttonDelete.setFont(font) icon6 = QIcon() icon6.addFile("icons/trash.svg", QSize(), QIcon.Normal, QIcon.Off) self.buttonDelete.setIcon(icon6) self.buttonDelete.setIconSize(QSize(13, 13)) self.gridLayout.addWidget(self.buttonDelete, 0, 2, 1, 1) self.verticalLayout_3.addWidget(self.frame_4) self.horizontalLayout_2.addWidget(self.frame_main) self.verticalLayout_2.addWidget(self.frame) MainWindow.setCentralWidget(self.centralwidget) self.retranslateUi(MainWindow) self.buttonPasswords.setDefault(False) QMetaObject.connectSlotsByName(MainWindow) # setupUi def retranslateUi(self, MainWindow): MainWindow.setWindowTitle( QCoreApplication.translate("MainWindow", "MainWindow", None) ) self.buttonPasswords.setText( QCoreApplication.translate("MainWindow", "Passwords", None) ) self.buttonAddNew.setText( QCoreApplication.translate("MainWindow", "Add New", None) ) self.buttonGenerate.setText( QCoreApplication.translate("MainWindow", "Generate Password", None) ) self.buttonSecurity.setText( QCoreApplication.translate("MainWindow", "Security Check", None) ) self.label.setText( QCoreApplication.translate("MainWindow", "Password Vault", None) ) self.editSearch.setPlaceholderText( QCoreApplication.translate( "MainWindow", "\ud83d\udd0d Search", None ) ) ___qtablewidgetitem = self.tablePasswords.horizontalHeaderItem(0) ___qtablewidgetitem.setText( QCoreApplication.translate("MainWindow", "Title", None) ) ___qtablewidgetitem1 = self.tablePasswords.horizontalHeaderItem(1) ___qtablewidgetitem1.setText( QCoreApplication.translate("MainWindow", "URL", None) ) ___qtablewidgetitem2 = self.tablePasswords.horizontalHeaderItem(2) ___qtablewidgetitem2.setText( QCoreApplication.translate("MainWindow", "Username", None) ) ___qtablewidgetitem3 = self.tablePasswords.horizontalHeaderItem(3) ___qtablewidgetitem3.setText( QCoreApplication.translate("MainWindow", "Password", None) ) self.buttonCopy.setText( QCoreApplication.translate("MainWindow", "Copy", None) ) self.buttonEdit.setText( QCoreApplication.translate("MainWindow", "Edit", None) ) self.buttonDelete.setText( QCoreApplication.translate("MainWindow", "Delete", None) ) # retranslateUi