test.py 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # -*- coding: utf-8 -*-
  2. # Form implementation generated from reading ui file 'pokepisode.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_MainWindow(object):
  10. def setupUi(self, MainWindow):
  11. MainWindow.setObjectName("MainWindow")
  12. MainWindow.resize(800, 600)
  13. self.centralwidget = QtWidgets.QWidget(MainWindow)
  14. self.centralwidget.setObjectName("centralwidget")
  15. self.TitleLabel = QtWidgets.QLabel(self.centralwidget)
  16. self.TitleLabel.setGeometry(QtCore.QRect(290, 20, 141, 31))
  17. self.TitleLabel.setObjectName("TitleLabel")
  18. self.gogoLinkButton = QtWidgets.QPushButton(self.centralwidget)
  19. self.gogoLinkButton.setGeometry(QtCore.QRect(60, 80, 75, 23))
  20. self.gogoLinkButton.setObjectName("gogoLinkButton")
  21. self.GoGoStatusLabel = QtWidgets.QLabel(self.centralwidget)
  22. self.GoGoStatusLabel.setGeometry(QtCore.QRect(10, 90, 47, 14))
  23. self.GoGoStatusLabel.setObjectName("GoGoStatusLabel")
  24. self.TorLinkButton = QtWidgets.QPushButton(self.centralwidget)
  25. self.TorLinkButton.setGeometry(QtCore.QRect(60, 110, 75, 23))
  26. self.TorLinkButton.setObjectName("TorLinkButton")
  27. self.TorStatusLabel = QtWidgets.QLabel(self.centralwidget)
  28. self.TorStatusLabel.setGeometry(QtCore.QRect(10, 110, 47, 14))
  29. self.TorStatusLabel.setObjectName("TorStatusLabel")
  30. MainWindow.setCentralWidget(self.centralwidget)
  31. self.menubar = QtWidgets.QMenuBar(MainWindow)
  32. self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 22))
  33. self.menubar.setObjectName("menubar")
  34. self.menuPokepisode = QtWidgets.QMenu(self.menubar)
  35. self.menuPokepisode.setObjectName("menuPokepisode")
  36. MainWindow.setMenuBar(self.menubar)
  37. self.statusbar = QtWidgets.QStatusBar(MainWindow)
  38. self.statusbar.setObjectName("statusbar")
  39. MainWindow.setStatusBar(self.statusbar)
  40. self.menubar.addAction(self.menuPokepisode.menuAction())
  41. self.retranslateUi(MainWindow)
  42. QtCore.QMetaObject.connectSlotsByName(MainWindow)
  43. def retranslateUi(self, MainWindow):
  44. _translate = QtCore.QCoreApplication.translate
  45. MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
  46. self.TitleLabel.setText(_translate("MainWindow", "PokEpisode"))
  47. self.gogoLinkButton.setText(_translate("MainWindow", "GoGo"))
  48. self.GoGoStatusLabel.setText(_translate("MainWindow", "TextLabel"))
  49. self.TorLinkButton.setText(_translate("MainWindow", "Tor"))
  50. self.TorStatusLabel.setText(_translate("MainWindow", "TextLabel"))
  51. self.menuPokepisode.setTitle(_translate("MainWindow", "Pokepisode"))
  52. if __name__ == "__main__":
  53. import sys
  54. app = QtWidgets.QApplication(sys.argv)
  55. MainWindow = QtWidgets.QMainWindow()
  56. ui = Ui_MainWindow()
  57. ui.setupUi(MainWindow)
  58. MainWindow.show()
  59. sys.exit(app.exec_())