diff --git a/ui.py b/ui.py new file mode 100644 index 0000000..277fe4f --- /dev/null +++ b/ui.py @@ -0,0 +1,160 @@ +# -*- coding: utf-8 -*- + +# Form implementation generated from reading ui file 'ui.ui' +# +# Created by: PyQt5 UI code generator 5.15.4 +# +# WARNING: Any manual changes made to this file will be lost when pyuic5 is +# run again. Do not edit this file unless you know what you are doing. + + +from PyQt5 import QtCore, QtGui, QtWidgets + + +class Ui_Form(object): + def setupUi(self, Form): + Form.setObjectName("Form") + Form.resize(1348, 878) + self.labelCover = QtWidgets.QLabel(Form) + self.labelCover.setGeometry(QtCore.QRect(150, 50, 481, 331)) + self.labelCover.setAcceptDrops(True) + self.labelCover.setFrameShape(QtWidgets.QFrame.Box) + self.labelCover.setFrameShadow(QtWidgets.QFrame.Sunken) + self.labelCover.setText("") + self.labelCover.setObjectName("labelCover") + self.labelSecret = QtWidgets.QLabel(Form) + self.labelSecret.setGeometry(QtCore.QRect(150, 450, 481, 321)) + self.labelSecret.setAcceptDrops(True) + self.labelSecret.setFrameShape(QtWidgets.QFrame.Box) + self.labelSecret.setFrameShadow(QtWidgets.QFrame.Sunken) + self.labelSecret.setText("") + self.labelSecret.setObjectName("labelSecret") + self.labelContainer = QtWidgets.QLabel(Form) + self.labelContainer.setGeometry(QtCore.QRect(740, 220, 521, 341)) + self.labelContainer.setAcceptDrops(True) + self.labelContainer.setFrameShape(QtWidgets.QFrame.Box) + self.labelContainer.setFrameShadow(QtWidgets.QFrame.Sunken) + self.labelContainer.setText("") + self.labelContainer.setObjectName("labelContainer") + self.label = QtWidgets.QLabel(Form) + self.label.setGeometry(QtCore.QRect(150, 390, 121, 31)) + font = QtGui.QFont() + font.setFamily("微软雅黑") + font.setPointSize(16) + self.label.setFont(font) + self.label.setAlignment(QtCore.Qt.AlignCenter) + self.label.setObjectName("label") + self.label_2 = QtWidgets.QLabel(Form) + self.label_2.setGeometry(QtCore.QRect(150, 780, 121, 31)) + font = QtGui.QFont() + font.setFamily("微软雅黑") + font.setPointSize(16) + self.label_2.setFont(font) + self.label_2.setAlignment(QtCore.Qt.AlignCenter) + self.label_2.setObjectName("label_2") + self.label_3 = QtWidgets.QLabel(Form) + self.label_3.setGeometry(QtCore.QRect(750, 580, 121, 31)) + font = QtGui.QFont() + font.setFamily("微软雅黑") + font.setPointSize(16) + self.label_3.setFont(font) + self.label_3.setAlignment(QtCore.Qt.AlignCenter) + self.label_3.setObjectName("label_3") + self.pushButtonEncode = QtWidgets.QPushButton(Form) + self.pushButtonEncode.setGeometry(QtCore.QRect(820, 710, 131, 61)) + font = QtGui.QFont() + font.setFamily("微软雅黑") + font.setPointSize(16) + self.pushButtonEncode.setFont(font) + self.pushButtonEncode.setObjectName("pushButtonEncode") + self.pushButtonDecode = QtWidgets.QPushButton(Form) + self.pushButtonDecode.setGeometry(QtCore.QRect(1080, 710, 131, 61)) + font = QtGui.QFont() + font.setFamily("微软雅黑") + font.setPointSize(16) + self.pushButtonDecode.setFont(font) + self.pushButtonDecode.setObjectName("pushButtonDecode") + self.pushButtonClearCover = QtWidgets.QPushButton(Form) + self.pushButtonClearCover.setGeometry(QtCore.QRect(390, 390, 101, 41)) + font = QtGui.QFont() + font.setFamily("微软雅黑") + font.setPointSize(16) + self.pushButtonClearCover.setFont(font) + self.pushButtonClearCover.setObjectName("pushButtonClearCover") + self.pushButtonSaveCover = QtWidgets.QPushButton(Form) + self.pushButtonSaveCover.setGeometry(QtCore.QRect(500, 390, 101, 41)) + font = QtGui.QFont() + font.setFamily("微软雅黑") + font.setPointSize(16) + self.pushButtonSaveCover.setFont(font) + self.pushButtonSaveCover.setObjectName("pushButtonSaveCover") + self.pushButtonClearSecret = QtWidgets.QPushButton(Form) + self.pushButtonClearSecret.setGeometry(QtCore.QRect(390, 780, 101, 41)) + font = QtGui.QFont() + font.setFamily("微软雅黑") + font.setPointSize(16) + self.pushButtonClearSecret.setFont(font) + self.pushButtonClearSecret.setObjectName("pushButtonClearSecret") + self.pushButtonSaveSecret = QtWidgets.QPushButton(Form) + self.pushButtonSaveSecret.setGeometry(QtCore.QRect(500, 780, 101, 41)) + font = QtGui.QFont() + font.setFamily("微软雅黑") + font.setPointSize(16) + self.pushButtonSaveSecret.setFont(font) + self.pushButtonSaveSecret.setObjectName("pushButtonSaveSecret") + self.pushButtonClearContainer = QtWidgets.QPushButton(Form) + self.pushButtonClearContainer.setGeometry(QtCore.QRect(1040, 580, 101, 41)) + font = QtGui.QFont() + font.setFamily("微软雅黑") + font.setPointSize(16) + self.pushButtonClearContainer.setFont(font) + self.pushButtonClearContainer.setObjectName("pushButtonClearContainer") + self.pushButtonSaveContainer = QtWidgets.QPushButton(Form) + self.pushButtonSaveContainer.setGeometry(QtCore.QRect(1150, 580, 101, 41)) + font = QtGui.QFont() + font.setFamily("微软雅黑") + font.setPointSize(16) + self.pushButtonSaveContainer.setFont(font) + self.pushButtonSaveContainer.setObjectName("pushButtonSaveContainer") + self.pushButtonOpenCover = QtWidgets.QPushButton(Form) + self.pushButtonOpenCover.setGeometry(QtCore.QRect(280, 390, 101, 41)) + font = QtGui.QFont() + font.setFamily("微软雅黑") + font.setPointSize(16) + self.pushButtonOpenCover.setFont(font) + self.pushButtonOpenCover.setObjectName("pushButtonOpenCover") + self.pushButtonOpenSecret = QtWidgets.QPushButton(Form) + self.pushButtonOpenSecret.setGeometry(QtCore.QRect(280, 780, 101, 41)) + font = QtGui.QFont() + font.setFamily("微软雅黑") + font.setPointSize(16) + self.pushButtonOpenSecret.setFont(font) + self.pushButtonOpenSecret.setObjectName("pushButtonOpenSecret") + self.pushButtonOpenContainer = QtWidgets.QPushButton(Form) + self.pushButtonOpenContainer.setGeometry(QtCore.QRect(930, 580, 101, 41)) + font = QtGui.QFont() + font.setFamily("微软雅黑") + font.setPointSize(16) + self.pushButtonOpenContainer.setFont(font) + self.pushButtonOpenContainer.setObjectName("pushButtonOpenContainer") + + self.retranslateUi(Form) + QtCore.QMetaObject.connectSlotsByName(Form) + + def retranslateUi(self, Form): + _translate = QtCore.QCoreApplication.translate + Form.setWindowTitle(_translate("Form", "图像隐写")) + self.label.setText(_translate("Form", "承载图像")) + self.label_2.setText(_translate("Form", "秘密图像")) + self.label_3.setText(_translate("Form", "合成图像")) + self.pushButtonEncode.setText(_translate("Form", "隐写")) + self.pushButtonDecode.setText(_translate("Form", "提取")) + self.pushButtonClearCover.setText(_translate("Form", "清空")) + self.pushButtonSaveCover.setText(_translate("Form", "保存")) + self.pushButtonClearSecret.setText(_translate("Form", "清空")) + self.pushButtonSaveSecret.setText(_translate("Form", "保存")) + self.pushButtonClearContainer.setText(_translate("Form", "清空")) + self.pushButtonSaveContainer.setText(_translate("Form", "保存")) + self.pushButtonOpenCover.setText(_translate("Form", "打开")) + self.pushButtonOpenSecret.setText(_translate("Form", "打开")) + self.pushButtonOpenContainer.setText(_translate("Form", "打开"))