Digit ui.py 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. # -*- coding: utf-8 -*-
  2. # Form implementation generated from reading ui file 'DigitUI1.ui'
  3. #
  4. # Created by: PyQt5 UI code generator 5.15.9
  5. #
  6. # WARNING: Any manual changes made to this file will be lost when pyuic5 is
  7. # run again. Do not edit this file unless you know what you are doing.
  8. from PyQt5 import QtCore, QtGui, QtWidgets
  9. class Ui_Digit(object):
  10. def setupUi(self, Digit):
  11. Digit.setObjectName("Digit")
  12. Digit.resize(653, 166)
  13. Digit.setStyleSheet("QPushButton{\n"
  14. " border-style:solid;\n"
  15. " border-width:1px;\n"
  16. " border-radius:8px;\n"
  17. " border-top-color:#FFFFFF;\n"
  18. " border-bottom-color:#888888;\n"
  19. " border-left-color:#FFFFFF;\n"
  20. " border-right-color:#888888;\n"
  21. "}\n"
  22. "QLabel#lbl_top1,#lbl_top2{\n"
  23. " color:red;\n"
  24. " font-size:24px;\n"
  25. "}\n"
  26. "QLabel#lbl_prob1,#lbl_prob2{\n"
  27. " color:blue;\n"
  28. "}")
  29. self.btn_recognize = QtWidgets.QPushButton(Digit)
  30. self.btn_recognize.setGeometry(QtCore.QRect(300, 200, 92, 28))
  31. self.btn_recognize.setObjectName("btn_recognize")
  32. self.label = QtWidgets.QLabel(Digit)
  33. self.label.setGeometry(QtCore.QRect(220, 10, 81, 41))
  34. self.label.setObjectName("label")
  35. self.lbl_user = QtWidgets.QTextEdit(Digit)
  36. self.lbl_user.setGeometry(QtCore.QRect(300, 20, 111, 31))
  37. self.lbl_user.setObjectName("lbl_user")
  38. self.label_2 = QtWidgets.QLabel(Digit)
  39. self.label_2.setGeometry(QtCore.QRect(230, 70, 60, 16))
  40. self.label_2.setObjectName("label_2")
  41. self.lbl_pwd = QtWidgets.QTextEdit(Digit)
  42. self.lbl_pwd.setGeometry(QtCore.QRect(300, 60, 111, 31))
  43. self.lbl_pwd.setObjectName("lbl_pwd")
  44. self.btn_login = QtWidgets.QPushButton(Digit)
  45. self.btn_login.setGeometry(QtCore.QRect(270, 110, 113, 32))
  46. self.btn_login.setObjectName("btn_login")
  47. self.lbl_result = QtWidgets.QLabel(Digit)
  48. self.lbl_result.setGeometry(QtCore.QRect(500, 50, 111, 41))
  49. self.lbl_result.setText("")
  50. self.lbl_result.setObjectName("lbl_result")
  51. # self.lbl_result.
  52. self.retranslateUi(Digit)
  53. self.btn_login.clicked.connect(Digit.capture_image) # type: ignore
  54. QtCore.QMetaObject.connectSlotsByName(Digit)
  55. def retranslateUi(self, Digit):
  56. _translate = QtCore.QCoreApplication.translate
  57. Digit.setWindowTitle(_translate("Digit", "手写数字识别程序"))
  58. self.btn_recognize.setText(_translate("Digit", "数组识别"))
  59. self.label.setText(_translate("Digit", "用户名:"))
  60. self.label_2.setText(_translate("Digit", "密 码:"))
  61. self.btn_login.setText(_translate("Digit", "登录"))