# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'main_window.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_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(1600, 900)
        Dialog.setSizeGripEnabled(False)
        Dialog.setModal(False)
        self.openButton = QtWidgets.QPushButton(Dialog)
        self.openButton.setGeometry(QtCore.QRect(355, 45, 90, 30))
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setPointSize(11)
        self.openButton.setFont(font)
        self.openButton.setObjectName("openButton")
        self.show_image = QtWidgets.QLabel(Dialog)
        self.show_image.setGeometry(QtCore.QRect(20, 100, 760, 760))
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setPointSize(11)
        self.show_image.setFont(font)
        self.show_image.setText("")
        self.show_image.setAlignment(QtCore.Qt.AlignCenter)
        self.show_image.setObjectName("show_image")
        self.pushButton = QtWidgets.QPushButton(Dialog)
        self.pushButton.setGeometry(QtCore.QRect(775, 45, 50, 30))
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setPointSize(11)
        self.pushButton.setFont(font)
        self.pushButton.setObjectName("pushButton")
        self.textBrowser = QtWidgets.QTextBrowser(Dialog)
        self.textBrowser.setGeometry(QtCore.QRect(820, 100, 760, 760))
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setPointSize(11)
        self.textBrowser.setFont(font)
        self.textBrowser.setLineWrapMode(QtWidgets.QTextEdit.NoWrap)
        self.textBrowser.setObjectName("textBrowser")
        self.saveFile = QtWidgets.QPushButton(Dialog)
        self.saveFile.setGeometry(QtCore.QRect(1175, 15, 50, 30))
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setPointSize(11)
        self.saveFile.setFont(font)
        self.saveFile.setObjectName("saveFile")
        self.picture_info = QtWidgets.QLabel(Dialog)
        self.picture_info.setGeometry(QtCore.QRect(470, 50, 181, 20))
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setPointSize(11)
        self.picture_info.setFont(font)
        self.picture_info.setText("")
        self.picture_info.setObjectName("picture_info")
        self.lineEdit_w = QtWidgets.QLineEdit(Dialog)
        self.lineEdit_w.setGeometry(QtCore.QRect(1350, 70, 40, 20))
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setPointSize(11)
        self.lineEdit_w.setFont(font)
        self.lineEdit_w.setText("")
        self.lineEdit_w.setMaxLength(4)
        self.lineEdit_w.setAlignment(QtCore.Qt.AlignCenter)
        self.lineEdit_w.setObjectName("lineEdit_w")
        self.label_5 = QtWidgets.QLabel(Dialog)
        self.label_5.setGeometry(QtCore.QRect(1390, 70, 20, 20))
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setPointSize(11)
        self.label_5.setFont(font)
        self.label_5.setAlignment(QtCore.Qt.AlignCenter)
        self.label_5.setObjectName("label_5")
        self.lineEdit_h = QtWidgets.QLineEdit(Dialog)
        self.lineEdit_h.setGeometry(QtCore.QRect(1410, 70, 40, 20))
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setPointSize(11)
        self.lineEdit_h.setFont(font)
        self.lineEdit_h.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.lineEdit_h.setAutoFillBackground(False)
        self.lineEdit_h.setStyleSheet("")
        self.lineEdit_h.setText("")
        self.lineEdit_h.setMaxLength(4)
        self.lineEdit_h.setFrame(True)
        self.lineEdit_h.setAlignment(QtCore.Qt.AlignCenter)
        self.lineEdit_h.setDragEnabled(False)
        self.lineEdit_h.setReadOnly(False)
        self.lineEdit_h.setObjectName("lineEdit_h")
        self.label_6 = QtWidgets.QLabel(Dialog)
        self.label_6.setGeometry(QtCore.QRect(1370, 30, 71, 40))
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setPointSize(11)
        self.label_6.setFont(font)
        self.label_6.setObjectName("label_6")
        self.pushButton_3 = QtWidgets.QPushButton(Dialog)
        self.pushButton_3.setGeometry(QtCore.QRect(1175, 60, 50, 30))
        font = QtGui.QFont()
        font.setFamily("Agency FB")
        font.setPointSize(10)
        self.pushButton_3.setFont(font)
        self.pushButton_3.setObjectName("pushButton_3")
        self.progressBar = QtWidgets.QProgressBar(Dialog)
        self.progressBar.setEnabled(True)
        self.progressBar.setGeometry(QtCore.QRect(930, 15, 141, 25))
        self.progressBar.setProperty("value", 0)
        self.progressBar.setTextVisible(True)
        self.progressBar.setObjectName("progressBar")
        self.output_info = QtWidgets.QLabel(Dialog)
        self.output_info.setGeometry(QtCore.QRect(900, 60, 171, 20))
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setPointSize(10)
        self.output_info.setFont(font)
        self.output_info.setText("")
        self.output_info.setAlignment(QtCore.Qt.AlignCenter)
        self.output_info.setObjectName("output_info")
        self.checkBox = QtWidgets.QCheckBox(Dialog)
        self.checkBox.setGeometry(QtCore.QRect(1460, 70, 91, 20))
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setPointSize(10)
        self.checkBox.setFont(font)
        self.checkBox.setChecked(True)
        self.checkBox.setAutoRepeat(False)
        self.checkBox.setTristate(False)
        self.checkBox.setObjectName("checkBox")

        self.retranslateUi(Dialog)
        self.openButton.clicked.connect(Dialog.openfile)
        self.pushButton.clicked.connect(Dialog.ascii)
        self.saveFile.clicked.connect(Dialog.savefile)
        self.pushButton_3.clicked.connect(Dialog.open_setting_ui)
        self.checkBox.toggled['bool'].connect(Dialog.lock)
        QtCore.QMetaObject.connectSlotsByName(Dialog)

    def retranslateUi(self, Dialog):
        _translate = QtCore.QCoreApplication.translate
        Dialog.setWindowTitle(_translate("Dialog", "Image to ASCII"))
        self.openButton.setText(_translate("Dialog", "打开图片"))
        self.pushButton.setText(_translate("Dialog", "生成"))
        self.saveFile.setText(_translate("Dialog", "保存"))
        self.label_5.setText(_translate("Dialog", "x"))
        self.label_6.setText(_translate("Dialog", "输出大小"))
        self.pushButton_3.setText(_translate("Dialog", "设置"))
        self.checkBox.setText(_translate("Dialog", "锁定比例"))

# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'main_window.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_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(1600, 900)
        Dialog.setSizeGripEnabled(False)
        Dialog.setModal(False)
        self.openButton = QtWidgets.QPushButton(Dialog)
        self.openButton.setGeometry(QtCore.QRect(355, 45, 90, 30))
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setPointSize(11)
        self.openButton.setFont(font)
        self.openButton.setObjectName("openButton")
        self.show_image = QtWidgets.QLabel(Dialog)
        self.show_image.setGeometry(QtCore.QRect(20, 100, 760, 760))
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setPointSize(11)
        self.show_image.setFont(font)
        self.show_image.setText("")
        self.show_image.setAlignment(QtCore.Qt.AlignCenter)
        self.show_image.setObjectName("show_image")
        self.pushButton = QtWidgets.QPushButton(Dialog)
        self.pushButton.setGeometry(QtCore.QRect(775, 45, 50, 30))
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setPointSize(11)
        self.pushButton.setFont(font)
        self.pushButton.setObjectName("pushButton")
        self.textBrowser = QtWidgets.QTextBrowser(Dialog)
        self.textBrowser.setGeometry(QtCore.QRect(820, 100, 760, 760))
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setPointSize(11)
        self.textBrowser.setFont(font)
        self.textBrowser.setLineWrapMode(QtWidgets.QTextEdit.NoWrap)
        self.textBrowser.setObjectName("textBrowser")
        self.saveFile = QtWidgets.QPushButton(Dialog)
        self.saveFile.setGeometry(QtCore.QRect(1175, 15, 50, 30))
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setPointSize(11)
        self.saveFile.setFont(font)
        self.saveFile.setObjectName("saveFile")
        self.picture_info = QtWidgets.QLabel(Dialog)
        self.picture_info.setGeometry(QtCore.QRect(470, 50, 181, 20))
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setPointSize(11)
        self.picture_info.setFont(font)
        self.picture_info.setText("")
        self.picture_info.setObjectName("picture_info")
        self.lineEdit_w = QtWidgets.QLineEdit(Dialog)
        self.lineEdit_w.setGeometry(QtCore.QRect(1350, 70, 40, 20))
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setPointSize(11)
        self.lineEdit_w.setFont(font)
        self.lineEdit_w.setText("")
        self.lineEdit_w.setMaxLength(4)
        self.lineEdit_w.setAlignment(QtCore.Qt.AlignCenter)
        self.lineEdit_w.setObjectName("lineEdit_w")
        self.label_5 = QtWidgets.QLabel(Dialog)
        self.label_5.setGeometry(QtCore.QRect(1390, 70, 20, 20))
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setPointSize(11)
        self.label_5.setFont(font)
        self.label_5.setAlignment(QtCore.Qt.AlignCenter)
        self.label_5.setObjectName("label_5")
        self.lineEdit_h = QtWidgets.QLineEdit(Dialog)
        self.lineEdit_h.setGeometry(QtCore.QRect(1410, 70, 40, 20))
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setPointSize(11)
        self.lineEdit_h.setFont(font)
        self.lineEdit_h.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.lineEdit_h.setAutoFillBackground(False)
        self.lineEdit_h.setStyleSheet("")
        self.lineEdit_h.setText("")
        self.lineEdit_h.setMaxLength(4)
        self.lineEdit_h.setFrame(True)
        self.lineEdit_h.setAlignment(QtCore.Qt.AlignCenter)
        self.lineEdit_h.setDragEnabled(False)
        self.lineEdit_h.setReadOnly(False)
        self.lineEdit_h.setObjectName("lineEdit_h")
        self.label_6 = QtWidgets.QLabel(Dialog)
        self.label_6.setGeometry(QtCore.QRect(1370, 30, 71, 40))
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setPointSize(11)
        self.label_6.setFont(font)
        self.label_6.setObjectName("label_6")
        self.pushButton_3 = QtWidgets.QPushButton(Dialog)
        self.pushButton_3.setGeometry(QtCore.QRect(1175, 60, 50, 30))
        font = QtGui.QFont()
        font.setFamily("Agency FB")
        font.setPointSize(10)
        self.pushButton_3.setFont(font)
        self.pushButton_3.setObjectName("pushButton_3")
        self.progressBar = QtWidgets.QProgressBar(Dialog)
        self.progressBar.setEnabled(True)
        self.progressBar.setGeometry(QtCore.QRect(930, 15, 141, 25))
        self.progressBar.setProperty("value", 0)
        self.progressBar.setTextVisible(True)
        self.progressBar.setObjectName("progressBar")
        self.output_info = QtWidgets.QLabel(Dialog)
        self.output_info.setGeometry(QtCore.QRect(900, 60, 171, 20))
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setPointSize(10)
        self.output_info.setFont(font)
        self.output_info.setText("")
        self.output_info.setAlignment(QtCore.Qt.AlignCenter)
        self.output_info.setObjectName("output_info")
        self.checkBox = QtWidgets.QCheckBox(Dialog)
        self.checkBox.setGeometry(QtCore.QRect(1460, 70, 91, 20))
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setPointSize(10)
        self.checkBox.setFont(font)
        self.checkBox.setChecked(True)
        self.checkBox.setAutoRepeat(False)
        self.checkBox.setTristate(False)
        self.checkBox.setObjectName("checkBox")

        self.retranslateUi(Dialog)
        self.openButton.clicked.connect(Dialog.openfile)
        self.pushButton.clicked.connect(Dialog.ascii)
        self.saveFile.clicked.connect(Dialog.savefile)
        self.pushButton_3.clicked.connect(Dialog.open_setting_ui)
        self.checkBox.toggled['bool'].connect(Dialog.lock)
        QtCore.QMetaObject.connectSlotsByName(Dialog)

    def retranslateUi(self, Dialog):
        _translate = QtCore.QCoreApplication.translate
        Dialog.setWindowTitle(_translate("Dialog", "Image to ASCII"))
        self.openButton.setText(_translate("Dialog", "打开图片"))
        self.pushButton.setText(_translate("Dialog", "生成"))
        self.saveFile.setText(_translate("Dialog", "保存"))
        self.label_5.setText(_translate("Dialog", "x"))
        self.label_6.setText(_translate("Dialog", "输出大小"))
        self.pushButton_3.setText(_translate("Dialog", "设置"))
        self.checkBox.setText(_translate("Dialog", "锁定比例"))

# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'main_window.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.