192 lines
12 KiB
Python
192 lines
12 KiB
Python
# -*- coding: utf-8 -*-
|
||
|
||
# Form implementation generated from reading ui file 'mainui.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_MainWindow(object):
|
||
def setupUi(self, MainWindow):
|
||
MainWindow.setObjectName("MainWindow")
|
||
MainWindow.resize(561, 551)
|
||
MainWindow.setMouseTracking(False)
|
||
icon = QtGui.QIcon()
|
||
icon.addPixmap(QtGui.QPixmap(":/icon/src/icon/dengdai.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||
MainWindow.setWindowIcon(icon)
|
||
self.centralwidget = QtWidgets.QWidget(MainWindow)
|
||
self.centralwidget.setObjectName("centralwidget")
|
||
self.groupBox = QtWidgets.QGroupBox(self.centralwidget)
|
||
self.groupBox.setGeometry(QtCore.QRect(20, 20, 520, 100))
|
||
self.groupBox.setObjectName("groupBox")
|
||
self.saveSetButton = QtWidgets.QPushButton(self.groupBox)
|
||
self.saveSetButton.setGeometry(QtCore.QRect(420, 30, 75, 52))
|
||
self.saveSetButton.setObjectName("saveSetButton")
|
||
self.newGameInput = QtWidgets.QLineEdit(self.groupBox)
|
||
self.newGameInput.setGeometry(QtCore.QRect(70, 60, 120, 20))
|
||
self.newGameInput.setText("")
|
||
self.newGameInput.setObjectName("newGameInput")
|
||
self.label_4 = QtWidgets.QLabel(self.groupBox)
|
||
self.label_4.setGeometry(QtCore.QRect(210, 60, 60, 20))
|
||
self.label_4.setLayoutDirection(QtCore.Qt.LeftToRight)
|
||
self.label_4.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
||
self.label_4.setObjectName("label_4")
|
||
self.newIpInput = QtWidgets.QLineEdit(self.groupBox)
|
||
self.newIpInput.setGeometry(QtCore.QRect(270, 60, 120, 20))
|
||
self.newIpInput.setObjectName("newIpInput")
|
||
self.label_2 = QtWidgets.QLabel(self.groupBox)
|
||
self.label_2.setGeometry(QtCore.QRect(10, 60, 60, 20))
|
||
self.label_2.setLayoutDirection(QtCore.Qt.LeftToRight)
|
||
self.label_2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
||
self.label_2.setObjectName("label_2")
|
||
self.nowIpLabel = QtWidgets.QLabel(self.groupBox)
|
||
self.nowIpLabel.setGeometry(QtCore.QRect(270, 30, 120, 20))
|
||
self.nowIpLabel.setStyleSheet("color: rgb(53, 132, 17);")
|
||
self.nowIpLabel.setObjectName("nowIpLabel")
|
||
self.label = QtWidgets.QLabel(self.groupBox)
|
||
self.label.setGeometry(QtCore.QRect(10, 30, 60, 20))
|
||
self.label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
||
self.label.setObjectName("label")
|
||
self.nowGameLabel = QtWidgets.QLabel(self.groupBox)
|
||
self.nowGameLabel.setGeometry(QtCore.QRect(70, 30, 120, 20))
|
||
self.nowGameLabel.setStyleSheet("color: rgb(53, 132, 17);")
|
||
self.nowGameLabel.setObjectName("nowGameLabel")
|
||
self.label_5 = QtWidgets.QLabel(self.groupBox)
|
||
self.label_5.setGeometry(QtCore.QRect(210, 30, 60, 20))
|
||
self.label_5.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
|
||
self.label_5.setObjectName("label_5")
|
||
self.groupBox_2 = QtWidgets.QGroupBox(self.centralwidget)
|
||
self.groupBox_2.setGeometry(QtCore.QRect(20, 130, 281, 80))
|
||
self.groupBox_2.setObjectName("groupBox_2")
|
||
self.nginxButton = QtWidgets.QPushButton(self.groupBox_2)
|
||
self.nginxButton.setGeometry(QtCore.QRect(10, 20, 80, 45))
|
||
self.nginxButton.setObjectName("nginxButton")
|
||
self.mysqlButton = QtWidgets.QPushButton(self.groupBox_2)
|
||
self.mysqlButton.setGeometry(QtCore.QRect(100, 20, 80, 45))
|
||
self.mysqlButton.setObjectName("mysqlButton")
|
||
self.gameButton = QtWidgets.QPushButton(self.groupBox_2)
|
||
self.gameButton.setGeometry(QtCore.QRect(190, 20, 80, 45))
|
||
self.gameButton.setObjectName("gameButton")
|
||
self.groupBox_3 = QtWidgets.QGroupBox(self.centralwidget)
|
||
self.groupBox_3.setGeometry(QtCore.QRect(20, 220, 521, 80))
|
||
self.groupBox_3.setObjectName("groupBox_3")
|
||
self.fanbianyiButton = QtWidgets.QPushButton(self.groupBox_3)
|
||
self.fanbianyiButton.setGeometry(QtCore.QRect(10, 20, 80, 45))
|
||
self.fanbianyiButton.setObjectName("fanbianyiButton")
|
||
self.shengchengButton = QtWidgets.QPushButton(self.groupBox_3)
|
||
self.shengchengButton.setGeometry(QtCore.QRect(100, 20, 80, 45))
|
||
self.shengchengButton.setObjectName("shengchengButton")
|
||
self.qianmingButton = QtWidgets.QPushButton(self.groupBox_3)
|
||
self.qianmingButton.setGeometry(QtCore.QRect(190, 20, 80, 45))
|
||
self.qianmingButton.setObjectName("qianmingButton")
|
||
self.heidisqlButton = QtWidgets.QPushButton(self.groupBox_3)
|
||
self.heidisqlButton.setGeometry(QtCore.QRect(280, 20, 80, 45))
|
||
self.heidisqlButton.setObjectName("heidisqlButton")
|
||
self.msvbcrtButton = QtWidgets.QPushButton(self.groupBox_3)
|
||
self.msvbcrtButton.setGeometry(QtCore.QRect(370, 20, 80, 45))
|
||
self.msvbcrtButton.setObjectName("msvbcrtButton")
|
||
self.CMDtextEdit = QtWidgets.QTextEdit(self.centralwidget)
|
||
self.CMDtextEdit.setGeometry(QtCore.QRect(20, 320, 521, 180))
|
||
self.CMDtextEdit.setStyleSheet("background-color: rgb(0, 0, 0);\n"
|
||
"color: rgb(40, 255, 16);")
|
||
self.CMDtextEdit.setObjectName("CMDtextEdit")
|
||
self.groupBox_4 = QtWidgets.QGroupBox(self.centralwidget)
|
||
self.groupBox_4.setGeometry(QtCore.QRect(310, 130, 231, 80))
|
||
self.groupBox_4.setObjectName("groupBox_4")
|
||
self.gmurlButton = QtWidgets.QPushButton(self.groupBox_4)
|
||
self.gmurlButton.setGeometry(QtCore.QRect(10, 20, 80, 45))
|
||
self.gmurlButton.setObjectName("gmurlButton")
|
||
self.yyurlButton = QtWidgets.QPushButton(self.groupBox_4)
|
||
self.yyurlButton.setGeometry(QtCore.QRect(100, 20, 80, 45))
|
||
self.yyurlButton.setObjectName("yyurlButton")
|
||
self.copyLabel = QtWidgets.QLabel(self.centralwidget)
|
||
self.copyLabel.setGeometry(QtCore.QRect(250, 520, 211, 21))
|
||
self.copyLabel.setStyleSheet("color: rgb(150, 150, 150);")
|
||
self.copyLabel.setObjectName("copyLabel")
|
||
self.upButton = QtWidgets.QPushButton(self.centralwidget)
|
||
self.upButton.setGeometry(QtCore.QRect(470, 520, 75, 23))
|
||
self.upButton.setStyleSheet("color: rgb(150, 150, 150);")
|
||
self.upButton.setObjectName("upButton")
|
||
MainWindow.setCentralWidget(self.centralwidget)
|
||
|
||
self.retranslateUi(MainWindow)
|
||
self.saveSetButton.clicked.connect(MainWindow.saveSet)
|
||
self.shengchengButton.clicked.connect(MainWindow.shengcheng)
|
||
self.qianmingButton.clicked.connect(MainWindow.qianming)
|
||
self.nginxButton.clicked.connect(MainWindow.nginx)
|
||
self.mysqlButton.clicked.connect(MainWindow.mysql)
|
||
self.gameButton.clicked.connect(MainWindow.game)
|
||
self.fanbianyiButton.clicked.connect(MainWindow.fanbianyi)
|
||
self.heidisqlButton.clicked.connect(MainWindow.heidisql)
|
||
self.newIpInput.returnPressed.connect(self.saveSetButton.click)
|
||
self.newGameInput.returnPressed.connect(self.saveSetButton.click)
|
||
self.gmurlButton.clicked.connect(MainWindow.gmurl)
|
||
self.yyurlButton.clicked.connect(MainWindow.yyurl)
|
||
self.msvbcrtButton.clicked.connect(MainWindow.msvbcrt)
|
||
self.upButton.clicked.connect(MainWindow.up)
|
||
QtCore.QMetaObject.connectSlotsByName(MainWindow)
|
||
MainWindow.setTabOrder(self.newGameInput, self.newIpInput)
|
||
MainWindow.setTabOrder(self.newIpInput, self.saveSetButton)
|
||
MainWindow.setTabOrder(self.saveSetButton, self.nginxButton)
|
||
MainWindow.setTabOrder(self.nginxButton, self.mysqlButton)
|
||
MainWindow.setTabOrder(self.mysqlButton, self.gameButton)
|
||
MainWindow.setTabOrder(self.gameButton, self.gmurlButton)
|
||
MainWindow.setTabOrder(self.gmurlButton, self.yyurlButton)
|
||
MainWindow.setTabOrder(self.yyurlButton, self.fanbianyiButton)
|
||
MainWindow.setTabOrder(self.fanbianyiButton, self.shengchengButton)
|
||
MainWindow.setTabOrder(self.shengchengButton, self.qianmingButton)
|
||
MainWindow.setTabOrder(self.qianmingButton, self.heidisqlButton)
|
||
MainWindow.setTabOrder(self.heidisqlButton, self.msvbcrtButton)
|
||
MainWindow.setTabOrder(self.msvbcrtButton, self.CMDtextEdit)
|
||
MainWindow.setTabOrder(self.CMDtextEdit, self.upButton)
|
||
|
||
def retranslateUi(self, MainWindow):
|
||
_translate = QtCore.QCoreApplication.translate
|
||
MainWindow.setWindowTitle(_translate("MainWindow", "牛叉游戏部署工具 v1.0"))
|
||
self.groupBox.setTitle(_translate("MainWindow", "基本设置"))
|
||
self.saveSetButton.setText(_translate("MainWindow", "保存"))
|
||
self.newGameInput.setPlaceholderText(_translate("MainWindow", "输入新名称"))
|
||
self.label_4.setText(_translate("MainWindow", "新IP:"))
|
||
self.newIpInput.setPlaceholderText(_translate("MainWindow", "输入IP"))
|
||
self.label_2.setText(_translate("MainWindow", "新名称:"))
|
||
self.nowIpLabel.setText(_translate("MainWindow", "255.255.255.255"))
|
||
self.label.setText(_translate("MainWindow", "游戏名称:"))
|
||
self.nowGameLabel.setText(_translate("MainWindow", "XX游戏"))
|
||
self.label_5.setText(_translate("MainWindow", "游戏IP:"))
|
||
self.groupBox_2.setTitle(_translate("MainWindow", "基础服务"))
|
||
self.nginxButton.setToolTip(_translate("MainWindow", "如正常启动Nginx和MySQL后网页报错或运行不正常可尝试安装VC运行库后再试"))
|
||
self.nginxButton.setText(_translate("MainWindow", "启动Nginx"))
|
||
self.mysqlButton.setToolTip(_translate("MainWindow", "如正常启动Nginx和MySQL后网页报错或运行不正常可尝试安装VC运行库后再试"))
|
||
self.mysqlButton.setText(_translate("MainWindow", "启动MySql"))
|
||
self.gameButton.setToolTip(_translate("MainWindow", "启动游戏网关需一定时间,请耐心等待"))
|
||
self.gameButton.setText(_translate("MainWindow", "启动游戏"))
|
||
self.groupBox_3.setTitle(_translate("MainWindow", "辅助工具"))
|
||
self.fanbianyiButton.setToolTip(_translate("MainWindow", "反编译的APK路径:d"))
|
||
self.fanbianyiButton.setText(_translate("MainWindow", "反编译APK"))
|
||
self.shengchengButton.setToolTip(_translate("MainWindow", "生成的APK路径:d"))
|
||
self.shengchengButton.setText(_translate("MainWindow", "生成APK"))
|
||
self.qianmingButton.setToolTip(_translate("MainWindow", "签名后的APK路径:d"))
|
||
self.qianmingButton.setText(_translate("MainWindow", "APK签名"))
|
||
self.heidisqlButton.setToolTip(_translate("MainWindow", "一款免费开源的MySQL客户端"))
|
||
self.heidisqlButton.setText(_translate("MainWindow", "HeidiSQL"))
|
||
self.msvbcrtButton.setToolTip(_translate("MainWindow", "如正常启动Nginx和MySQL后网页报错或运行不正常可尝试安装VC运行库后再试"))
|
||
self.msvbcrtButton.setText(_translate("MainWindow", "VC运行库"))
|
||
self.CMDtextEdit.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
|
||
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
|
||
"p, li { white-space: pre-wrap; }\n"
|
||
"</style></head><body style=\" font-family:\'SimSun\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
|
||
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">准备就绪,请在上方进行操作,部分操作进程和结果会在此处显示。</p></body></html>"))
|
||
self.groupBox_4.setTitle(_translate("MainWindow", "游戏相关"))
|
||
self.gmurlButton.setToolTip(_translate("MainWindow", "<html><head/><body><p>网址:http://127.0.0.1:81/gm<br/>帐号:admin<br/>密码:123456<br/>校验码:123456</p></body></html>"))
|
||
self.gmurlButton.setText(_translate("MainWindow", "GM后台"))
|
||
self.yyurlButton.setToolTip(_translate("MainWindow", "<html><head/><body><p>网址:http://127.0.0.1:81/gm<br/>帐号:admin<br/>密码:123456<br/>校验码:123456</p></body></html>"))
|
||
self.yyurlButton.setText(_translate("MainWindow", "运营后台"))
|
||
self.copyLabel.setText(_translate("MainWindow", "<html><head/><body><p>牛叉游戏部署工具 v1.0 By:<a href=\"https://shileiye.com\"><span style=\" text-decoration: none; color:#0000ff;\">shileiye</span></a></p></body></html>"))
|
||
self.upButton.setText(_translate("MainWindow", "检查新版"))
|
||
import icon_rc
|