def __init__(self): super(ui_StrokesPanel, self).__init__() self.gridLayout = QtWidgets.QGridLayout(self) self.gridLayout.setObjectName("gridLayout") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.StrokesDecryptButton = uni_Widget.ICTFEButton(self) self.StrokesDecryptButton.setMinimumSize(QtCore.QSize(120, 45)) self.StrokesDecryptButton.setMaximumSize(QtCore.QSize(120, 45)) self.StrokesDecryptButton.setObjectName("StrokesDecryptButton") self.horizontalLayout.addWidget(self.StrokesDecryptButton) self.gridLayout.addLayout(self.horizontalLayout, 0, 0, 1, 1) self.StrokesTextBox = uni_Widget.ICTFETextBox(self) self.StrokesTextBox.setObjectName("StrokesTextBox") self.gridLayout.addWidget(self.StrokesTextBox, 1, 0, 1, 1) self.StrokesCipherBox = uni_Widget.ICTFETextBox(self) self.StrokesCipherBox.setObjectName("StrokesCipherBox") self.gridLayout.addWidget(self.StrokesCipherBox, 1, 1, 1, 1) self.retranslateUi() QtCore.QMetaObject.connectSlotsByName(self)
def __init__(self): super(ui_MorsePanel, self).__init__() self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self) self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.MorseSpiltTips = uni_Widget.ICTFELabel(self) self.MorseSpiltTips.setObjectName("MorseSpiltTips") self.horizontalLayout.addWidget(self.MorseSpiltTips) self.MorseSpiltBox = uni_Widget.ICTFELineBox(self) self.MorseSpiltBox.setObjectName("MorseSpiltBox") self.horizontalLayout.addWidget(self.MorseSpiltBox) self.MorseChineseCheckBox = uni_Widget.ICTFECheckBox(self) self.MorseChineseCheckBox.setMinimumSize(QtCore.QSize(120, 45)) self.MorseChineseCheckBox.setMaximumSize(QtCore.QSize(120, 45)) self.MorseChineseCheckBox.setObjectName("MorseChineseCheckBox") self.horizontalLayout.addWidget(self.MorseChineseCheckBox) spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.MorseEncodeButton = uni_Widget.ICTFEButton(self) self.MorseEncodeButton.setMinimumSize(QtCore.QSize(120, 45)) self.MorseEncodeButton.setMaximumSize(QtCore.QSize(120, 45)) self.MorseEncodeButton.setObjectName("MorseEncodeButton") self.horizontalLayout.addWidget(self.MorseEncodeButton) self.verticalLayout.addLayout(self.horizontalLayout) self.MorseTextBox = uni_Widget.ICTFETextBox(self) self.MorseTextBox.setObjectName("MorseTextBox") self.verticalLayout.addWidget(self.MorseTextBox) self.horizontalLayout_3.addLayout(self.verticalLayout) self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem1) self.MorseDecodeButton = uni_Widget.ICTFEButton(self) self.MorseDecodeButton.setMinimumSize(QtCore.QSize(120, 45)) self.MorseDecodeButton.setMaximumSize(QtCore.QSize(120, 45)) self.MorseDecodeButton.setObjectName("MorseDecodeButton") self.horizontalLayout_2.addWidget(self.MorseDecodeButton) self.verticalLayout_2.addLayout(self.horizontalLayout_2) self.MorseCipherBox = uni_Widget.ICTFETextBox(self) self.MorseCipherBox.setObjectName("MorseCipherBox") self.verticalLayout_2.addWidget(self.MorseCipherBox) self.horizontalLayout_3.addLayout(self.verticalLayout_2) self.horizontalLayout_4.addLayout(self.horizontalLayout_3) self.retranslateUi() QtCore.QMetaObject.connectSlotsByName(self)
def errorInfo(self, info, types='错误提示'): errorWin = QtWidgets.QDialog() errorWin.setWindowTitle(types) errorWin.setFixedSize(400, 300) errorWin.setStyleSheet('background-color: rgb(30, 30, 30)') lbl = uni_Widget.ICTFETextBox(errorWin) lbl.setText(info) lbl.setGeometry(QtCore.QRect(1, 1, 398, 253)) btn = uni_Widget.ICTFEButton(errorWin) btn.setGeometry(QtCore.QRect(280, 255, 120, 45)) btn.setText('确定') btn.clicked.connect(errorWin.close) errorWin.exec()
def __init__(self): super(ui_HashPanel, self).__init__() # input text file button self.HashTextInputPath = '' self.HashTextInputFlag = False self.horizontalLayout_14 = QtWidgets.QHBoxLayout(self) self.horizontalLayout_14.setObjectName("horizontalLayout_14") self.horizontalLayout_13 = QtWidgets.QHBoxLayout() self.horizontalLayout_13.setObjectName("horizontalLayout_13") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.HashTextInputButton = uni_Widget.ICTFEButton(self) self.HashTextInputButton.setMinimumSize(QtCore.QSize(120, 45)) self.HashTextInputButton.setMaximumSize(QtCore.QSize(120, 45)) self.HashTextInputButton.setObjectName("HashTextInputButton") self.horizontalLayout.addWidget(self.HashTextInputButton) self.HashEncodingTips = uni_Widget.ICTFELabel(self) self.HashEncodingTips.setObjectName("HashEncodingTips") self.horizontalLayout.addWidget(self.HashEncodingTips) self.HashEncodingBox = uni_Widget.ICTFELineBox(self) self.HashEncodingBox.setMaximumSize(QtCore.QSize(100, 16777215)) self.HashEncodingBox.setObjectName("HashEncodingBox") self.horizontalLayout.addWidget(self.HashEncodingBox) self.HashSaltTips = uni_Widget.ICTFELabel(self) self.HashSaltTips.setObjectName("HashSaltTips") self.horizontalLayout.addWidget(self.HashSaltTips) self.HashSaltBox = uni_Widget.ICTFELineBox(self) self.HashSaltBox.setMaximumSize(QtCore.QSize(60, 16777215)) self.HashSaltBox.setObjectName("HashSaltBox") self.horizontalLayout.addWidget(self.HashSaltBox) self.HashEvalCheckBox = uni_Widget.ICTFECheckBox(self) self.HashEvalCheckBox.setMinimumSize(QtCore.QSize(60, 45)) self.HashEvalCheckBox.setMaximumSize(QtCore.QSize(60, 45)) self.HashEvalCheckBox.setObjectName("HashEvalCheckBox") self.horizontalLayout.addWidget(self.HashEvalCheckBox) spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.HashEncodeButton = uni_Widget.ICTFEButton(self) self.HashEncodeButton.setMinimumSize(QtCore.QSize(120, 45)) self.HashEncodeButton.setMaximumSize(QtCore.QSize(120, 45)) self.HashEncodeButton.setObjectName("HashEncodeButton") self.horizontalLayout.addWidget(self.HashEncodeButton) self.verticalLayout.addLayout(self.horizontalLayout) self.HashTextBox = uni_Widget.ICTFETextBox(self) self.HashTextBox.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.HashTextBox.setObjectName("HashTextBox") self.verticalLayout.addWidget(self.HashTextBox) self.horizontalLayout_13.addLayout(self.verticalLayout) self.scrollArea = uni_Widget.ICTFEScrollArea(self) self.scrollArea.setWidgetResizable(True) self.scrollArea.setObjectName("scrollArea") self.scrollAreaWidgetContents = QtWidgets.QWidget() self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 516, 731)) self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents") self.verticalLayout_2 = QtWidgets.QVBoxLayout( self.scrollAreaWidgetContents) self.verticalLayout_2.setObjectName("verticalLayout_2") self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.HashTips = uni_Widget.ICTFELabel(self.scrollAreaWidgetContents) self.HashTips.setObjectName("HashTips") self.horizontalLayout_2.addWidget(self.HashTips) self.HashValueBox = uni_Widget.ICTFELineBox( self.scrollAreaWidgetContents) self.HashValueBox.setObjectName("HashValueBox") self.HashValueBox.setMinimumHeight(45) self.horizontalLayout_2.addWidget(self.HashValueBox) self.verticalLayout_2.addLayout(self.horizontalLayout_2) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.MD5Tips = uni_Widget.ICTFELabel(self.scrollAreaWidgetContents) self.MD5Tips.setObjectName("MD5Tips") self.horizontalLayout_3.addWidget(self.MD5Tips) self.MD5ValueBox = uni_Widget.ICTFELineBox( self.scrollAreaWidgetContents) self.MD5ValueBox.setObjectName("MD5ValueBox") self.MD5ValueBox.setMinimumHeight(45) self.horizontalLayout_3.addWidget(self.MD5ValueBox) self.verticalLayout_2.addLayout(self.horizontalLayout_3) self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.SHA1Tips = uni_Widget.ICTFELabel(self.scrollAreaWidgetContents) self.SHA1Tips.setObjectName("SHA1Tips") self.horizontalLayout_4.addWidget(self.SHA1Tips) self.SHA1ValueBox = uni_Widget.ICTFELineBox( self.scrollAreaWidgetContents) self.SHA1ValueBox.setObjectName("SHA1ValueBox") self.SHA1ValueBox.setMinimumHeight(45) self.horizontalLayout_4.addWidget(self.SHA1ValueBox) self.verticalLayout_2.addLayout(self.horizontalLayout_4) self.horizontalLayout_5 = QtWidgets.QHBoxLayout() self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.SHA224Tips = uni_Widget.ICTFELabel(self.scrollAreaWidgetContents) self.SHA224Tips.setObjectName("SHA224Tips") self.horizontalLayout_5.addWidget(self.SHA224Tips) self.SHA224ValueBox = uni_Widget.ICTFELineBox( self.scrollAreaWidgetContents) self.SHA224ValueBox.setObjectName("SHA224ValueBox") self.SHA224ValueBox.setMinimumHeight(45) self.horizontalLayout_5.addWidget(self.SHA224ValueBox) self.verticalLayout_2.addLayout(self.horizontalLayout_5) self.horizontalLayout_6 = QtWidgets.QHBoxLayout() self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.SHA256Tips = uni_Widget.ICTFELabel(self.scrollAreaWidgetContents) self.SHA256Tips.setObjectName("SHA256Tips") self.horizontalLayout_6.addWidget(self.SHA256Tips) self.SHA256ValueBox = uni_Widget.ICTFELineBox( self.scrollAreaWidgetContents) self.SHA256ValueBox.setObjectName("SHA256ValueBox") self.SHA256ValueBox.setMinimumHeight(45) self.horizontalLayout_6.addWidget(self.SHA256ValueBox) self.verticalLayout_2.addLayout(self.horizontalLayout_6) self.horizontalLayout_7 = QtWidgets.QHBoxLayout() self.horizontalLayout_7.setObjectName("horizontalLayout_7") self.SHA384Tips = uni_Widget.ICTFELabel(self.scrollAreaWidgetContents) self.SHA384Tips.setObjectName("SHA384Tips") self.horizontalLayout_7.addWidget(self.SHA384Tips) self.SHA384ValueBox = uni_Widget.ICTFELineBox( self.scrollAreaWidgetContents) self.SHA384ValueBox.setObjectName("SHA384ValueBox") self.SHA384ValueBox.setMinimumHeight(45) self.horizontalLayout_7.addWidget(self.SHA384ValueBox) self.verticalLayout_2.addLayout(self.horizontalLayout_7) self.horizontalLayout_8 = QtWidgets.QHBoxLayout() self.horizontalLayout_8.setObjectName("horizontalLayout_8") self.SHA512Tips = uni_Widget.ICTFELabel(self.scrollAreaWidgetContents) self.SHA512Tips.setObjectName("SHA512Tips") self.horizontalLayout_8.addWidget(self.SHA512Tips) self.SHA512ValueBox = uni_Widget.ICTFELineBox( self.scrollAreaWidgetContents) self.SHA512ValueBox.setObjectName("SHA512ValueBox") self.SHA512ValueBox.setMinimumHeight(45) self.horizontalLayout_8.addWidget(self.SHA512ValueBox) self.verticalLayout_2.addLayout(self.horizontalLayout_8) self.horizontalLayout_9 = QtWidgets.QHBoxLayout() self.horizontalLayout_9.setObjectName("horizontalLayout_9") self.SHA3224Tips = uni_Widget.ICTFELabel(self.scrollAreaWidgetContents) self.SHA3224Tips.setObjectName("SHA3224Tips") self.horizontalLayout_9.addWidget(self.SHA3224Tips) self.SHA3224ValueBox = uni_Widget.ICTFELineBox( self.scrollAreaWidgetContents) self.SHA3224ValueBox.setObjectName("SHA3224ValueBox") self.SHA3224ValueBox.setMinimumHeight(45) self.horizontalLayout_9.addWidget(self.SHA3224ValueBox) self.verticalLayout_2.addLayout(self.horizontalLayout_9) self.horizontalLayout_10 = QtWidgets.QHBoxLayout() self.horizontalLayout_10.setObjectName("horizontalLayout_10") self.SHA3256Tips = uni_Widget.ICTFELabel(self.scrollAreaWidgetContents) self.SHA3256Tips.setObjectName("SHA3256Tips") self.horizontalLayout_10.addWidget(self.SHA3256Tips) self.SHA3256ValueBox = uni_Widget.ICTFELineBox( self.scrollAreaWidgetContents) self.SHA3256ValueBox.setObjectName("SHA3256ValueBox") self.SHA3256ValueBox.setMinimumHeight(45) self.horizontalLayout_10.addWidget(self.SHA3256ValueBox) self.verticalLayout_2.addLayout(self.horizontalLayout_10) self.horizontalLayout_11 = QtWidgets.QHBoxLayout() self.horizontalLayout_11.setObjectName("horizontalLayout_11") self.SHA3384Tips = uni_Widget.ICTFELabel(self.scrollAreaWidgetContents) self.SHA3384Tips.setObjectName("SHA3384Tips") self.horizontalLayout_11.addWidget(self.SHA3384Tips) self.SHA3384ValueBox = uni_Widget.ICTFELineBox( self.scrollAreaWidgetContents) self.SHA3384ValueBox.setObjectName("SHA3384ValueBox") self.SHA3384ValueBox.setMinimumHeight(45) self.horizontalLayout_11.addWidget(self.SHA3384ValueBox) self.verticalLayout_2.addLayout(self.horizontalLayout_11) self.horizontalLayout_12 = QtWidgets.QHBoxLayout() self.horizontalLayout_12.setObjectName("horizontalLayout_12") self.SHA3512Tips = uni_Widget.ICTFELabel(self.scrollAreaWidgetContents) self.SHA3512Tips.setTextFormat(QtCore.Qt.AutoText) self.SHA3512Tips.setObjectName("SHA3512Tips") self.horizontalLayout_12.addWidget(self.SHA3512Tips) self.SHA3512ValueBox = uni_Widget.ICTFELineBox( self.scrollAreaWidgetContents) self.SHA3512ValueBox.setObjectName("SHA3512ValueBox") self.SHA3512ValueBox.setMinimumHeight(45) self.horizontalLayout_12.addWidget(self.SHA3512ValueBox) self.verticalLayout_2.addLayout(self.horizontalLayout_12) self.scrollArea.setWidget(self.scrollAreaWidgetContents) self.horizontalLayout_13.addWidget(self.scrollArea) self.horizontalLayout_14.addLayout(self.horizontalLayout_13) self.retranslateUi() QtCore.QMetaObject.connectSlotsByName(self)
def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self._string = None self._edit = uni_Widget.ICTFETextBox() self._edit.textChanged.connect(self.onTextEdited)
def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self._node_data = None self._show = uni_Widget.ICTFETextBox() self._show.setReadOnly(True) self._show.setText('未连接..')
def __init__(self): super(ui_QuotePanel, self).__init__() # begin quote panel # input text file button self.QuoteTextInputPath = '' # output text file button self.QuoteTextOutputPath = '' # input cipher file button self.QuoteCipherInputPath = '' # output cipher file button self.QuoteCipherOutputPath = '' self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self) self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.QuoteTextInputButton = uni_Widget.ICTFEButton(self) self.QuoteTextInputButton.setMinimumSize(QtCore.QSize(120, 45)) self.QuoteTextInputButton.setMaximumSize(QtCore.QSize(120, 45)) self.QuoteTextInputButton.setObjectName("QuoteTextInputButton") self.horizontalLayout.addWidget(self.QuoteTextInputButton) self.QuoteTextOutputButton = uni_Widget.ICTFEButton(self) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(120) sizePolicy.setVerticalStretch(45) sizePolicy.setHeightForWidth( self.QuoteTextOutputButton.sizePolicy().hasHeightForWidth()) self.QuoteTextOutputButton.setSizePolicy(sizePolicy) self.QuoteTextOutputButton.setMinimumSize(QtCore.QSize(120, 45)) self.QuoteTextOutputButton.setMaximumSize(QtCore.QSize(120, 45)) self.QuoteTextOutputButton.setObjectName("QuoteTextOutputButton") self.horizontalLayout.addWidget(self.QuoteTextOutputButton) self.QuoteEvalCheckBox = uni_Widget.ICTFECheckBox(self) self.QuoteEvalCheckBox.setMinimumSize(QtCore.QSize(120, 45)) self.QuoteEvalCheckBox.setMaximumSize(QtCore.QSize(120, 45)) self.QuoteEvalCheckBox.setObjectName("QuoteEvalCheckBox") self.horizontalLayout.addWidget(self.QuoteEvalCheckBox) spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.QuoteEncodeButton = uni_Widget.ICTFEButton(self) self.QuoteEncodeButton.setMinimumSize(QtCore.QSize(120, 45)) self.QuoteEncodeButton.setMaximumSize(QtCore.QSize(120, 45)) self.QuoteEncodeButton.setObjectName("QuoteEncodeButton") self.horizontalLayout.addWidget(self.QuoteEncodeButton) self.verticalLayout.addLayout(self.horizontalLayout) self.QuoteTextBox = uni_Widget.ICTFETextBox(self) self.QuoteTextBox.setObjectName("QuoteTextBox") self.verticalLayout.addWidget(self.QuoteTextBox) self.horizontalLayout_3.addLayout(self.verticalLayout) self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.QuoteCipherInputButton = uni_Widget.ICTFEButton(self) self.QuoteCipherInputButton.setMinimumSize(QtCore.QSize(120, 45)) self.QuoteCipherInputButton.setMaximumSize(QtCore.QSize(120, 45)) self.QuoteCipherInputButton.setObjectName("QuoteCipherInputButton") self.horizontalLayout_2.addWidget(self.QuoteCipherInputButton) self.QuoteCipherOutputButton = uni_Widget.ICTFEButton(self) self.QuoteCipherOutputButton.setMinimumSize(QtCore.QSize(120, 45)) self.QuoteCipherOutputButton.setMaximumSize(QtCore.QSize(120, 45)) self.QuoteCipherOutputButton.setObjectName("QuoteCipherOutputButton") self.horizontalLayout_2.addWidget(self.QuoteCipherOutputButton) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem1) self.QuoteDecodeButton = uni_Widget.ICTFEButton(self) self.QuoteDecodeButton.setMinimumSize(QtCore.QSize(120, 45)) self.QuoteDecodeButton.setMaximumSize(QtCore.QSize(120, 45)) self.QuoteDecodeButton.setObjectName("QuoteDecodeButton") self.horizontalLayout_2.addWidget(self.QuoteDecodeButton) self.verticalLayout_2.addLayout(self.horizontalLayout_2) self.QuoteCipherBox = uni_Widget.ICTFETextBox(self) self.QuoteCipherBox.setObjectName("QuoteCipherBox") self.verticalLayout_2.addWidget(self.QuoteCipherBox) self.horizontalLayout_3.addLayout(self.verticalLayout_2) self.horizontalLayout_4.addLayout(self.horizontalLayout_3) self.retranslateUi()