resize_photos.py 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. # -*- coding: utf-8 -*-
  2. ################################################################################
  3. ## Form generated from reading UI file 'resize_photos.ui'
  4. ##
  5. ## Created by: Qt User Interface Compiler version 6.2.4
  6. ##
  7. ## WARNING! All changes made in this file will be lost when recompiling UI file!
  8. ################################################################################
  9. from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
  10. QMetaObject, QObject, QPoint, QRect,
  11. QSize, QTime, QUrl, Qt)
  12. from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
  13. QFont, QFontDatabase, QGradient, QIcon,
  14. QImage, QKeySequence, QLinearGradient, QPainter,
  15. QPalette, QPixmap, QRadialGradient, QTransform)
  16. from PySide6.QtWidgets import (QApplication, QLabel, QLineEdit, QProgressBar,
  17. QPushButton, QSizePolicy, QTextBrowser, QWidget)
  18. class Ui_Form(object):
  19. def setupUi(self, Form):
  20. if not Form.objectName():
  21. Form.setObjectName(u"Form")
  22. Form.resize(457, 418)
  23. Form.setStyleSheet(u"background-color: rgb(232, 232, 232);")
  24. self.label_2 = QLabel(Form)
  25. self.label_2.setObjectName(u"label_2")
  26. self.label_2.setGeometry(QRect(10, 70, 81, 16))
  27. self.label_3 = QLabel(Form)
  28. self.label_3.setObjectName(u"label_3")
  29. self.label_3.setGeometry(QRect(100, 70, 81, 16))
  30. self.label_3.setStyleSheet(u"color: rgb(40, 12, 255);")
  31. self.label_4 = QLabel(Form)
  32. self.label_4.setObjectName(u"label_4")
  33. self.label_4.setGeometry(QRect(10, 90, 431, 31))
  34. self.label_4.setWordWrap(True)
  35. self.progressBar = QProgressBar(Form)
  36. self.progressBar.setObjectName(u"progressBar")
  37. self.progressBar.setGeometry(QRect(20, 190, 421, 31))
  38. self.progressBar.setValue(24)
  39. self.pushButton = QPushButton(Form)
  40. self.pushButton.setObjectName(u"pushButton")
  41. self.pushButton.setGeometry(QRect(150, 360, 161, 41))
  42. self.pushButton.setStyleSheet(u"background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(255, 137, 27, 255), stop:1 rgba(255, 93, 1, 255));\n"
  43. "color: rgb(255, 255, 255);\n"
  44. "border-radius: 5px; border: 2px groove gray;\n"
  45. "border:0px;")
  46. self.textBrowser = QTextBrowser(Form)
  47. self.textBrowser.setObjectName(u"textBrowser")
  48. self.textBrowser.setGeometry(QRect(10, 10, 431, 51))
  49. self.textBrowser_2 = QTextBrowser(Form)
  50. self.textBrowser_2.setObjectName(u"textBrowser_2")
  51. self.textBrowser_2.setGeometry(QRect(10, 230, 431, 111))
  52. self.textBrowser_2.setStyleSheet(u"border-radius: 5px; border: 2px groove gray;\\nborder:0px;")
  53. self.label_5 = QLabel(Form)
  54. self.label_5.setObjectName(u"label_5")
  55. self.label_5.setGeometry(QRect(20, 170, 361, 20))
  56. self.label_5.setAlignment(Qt.AlignCenter)
  57. self.label_6 = QLabel(Form)
  58. self.label_6.setObjectName(u"label_6")
  59. self.label_6.setGeometry(QRect(10, 140, 71, 16))
  60. self.lineEdit = QLineEdit(Form)
  61. self.lineEdit.setObjectName(u"lineEdit")
  62. self.lineEdit.setGeometry(QRect(100, 130, 113, 31))
  63. self.lineEdit.setStyleSheet(u"background-color: rgb(255, 255, 255);")
  64. self.label_7 = QLabel(Form)
  65. self.label_7.setObjectName(u"label_7")
  66. self.label_7.setGeometry(QRect(220, 140, 141, 16))
  67. self.label_8 = QLabel(Form)
  68. self.label_8.setObjectName(u"label_8")
  69. self.label_8.setGeometry(QRect(350, 370, 81, 21))
  70. self.label_8.setStyleSheet(u"color: rgb(40, 12, 255);")
  71. self.retranslateUi(Form)
  72. QMetaObject.connectSlotsByName(Form)
  73. # setupUi
  74. def retranslateUi(self, Form):
  75. Form.setWindowTitle(QCoreApplication.translate("Form", u"\u56fe\u7247\u81ea\u52a8\u538b\u7f29", None))
  76. self.label_2.setText(QCoreApplication.translate("Form", u"\u5f53\u524d\u56fe\u7247\u8def\u5f84", None))
  77. self.label_3.setText(QCoreApplication.translate("Form", u"\u70b9\u51fb\u4fee\u6539\u8def\u5f84", None))
  78. self.label_4.setText(QCoreApplication.translate("Form", u"\u6587\u4ef6\u5939\u8def\u5f84\u5c55\u793a", None))
  79. self.pushButton.setText(QCoreApplication.translate("Form", u"\u6267\u884c\u538b\u7f29", None))
  80. self.textBrowser.setHtml(QCoreApplication.translate("Form", u"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
  81. "<html><head><meta name=\"qrichtext\" content=\"1\" /><meta charset=\"utf-8\" /><style type=\"text/css\">\n"
  82. "p, li { white-space: pre-wrap; }\n"
  83. "</style></head><body style=\" font-family:'Microsoft YaHei UI'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
  84. "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">\u6ce8\u610f\u5f53\u524d\u56fe\u7247\u81ea\u52a8\u6539\u5c3a\u5bf8\u529f\u80fd\uff0c\u4f1a\u904d\u5386\u60a8\u7684\u6240\u9009\u7684\u6587\u4ef6\u5939\uff0c\u4ee5\u53ca\u5b50\u6587\u4ef6\u5939\uff0c\u8bf7\u6ce8\u610f\u6587\u4ef6\u5939\u9009\u62e9\u662f\u5426\u6b63\u786e\uff0c\u6570\u636e\u81ea\u884c\u5907\u4efd\u3002\u6267\u884c\u540e\u65e0\u6cd5\u64a4\u56de\u3002</p></body></html>", None))
  85. self.textBrowser_2.setHtml(QCoreApplication.translate("Form", u"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
  86. "<html><head><meta name=\"qrichtext\" content=\"1\" /><meta charset=\"utf-8\" /><style type=\"text/css\">\n"
  87. "p, li { white-space: pre-wrap; }\n"
  88. "</style></head><body style=\" font-family:'Microsoft YaHei UI'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
  89. "<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'SimSun';\"><br /></p></body></html>", None))
  90. self.label_5.setText(QCoreApplication.translate("Form", u"\u56fe\u7247\u538b\u7f29\u8fdb\u5ea6", None))
  91. self.label_6.setText(QCoreApplication.translate("Form", u"\u56fe\u7247\u50cf\u7d20\u5bbd\u5ea6", None))
  92. self.label_7.setText(QCoreApplication.translate("Form", u"PX(\u5efa\u8bae\u586b\u5199800)", None))
  93. self.label_8.setText(QCoreApplication.translate("Form", u"\u6253\u5f00\u6587\u4ef6\u5939", None))
  94. # retranslateUi