This commit is contained in:
BarsTiger
2021-11-10 15:48:12 +02:00
parent ec2e413092
commit c3cec5b593
2 changed files with 183 additions and 0 deletions

46
Python10_95/python.py Normal file
View File

@@ -0,0 +1,46 @@
print("Python 10.95.9 (tags/v10.95.9:1016ef3, Aug 30 3025, 20:19:38) [MSC v.1929 512 bit (AMD512)] on win256")
print('Type "help", "copyright", "credits" or "license" for more information.')
while True:
command = input(">>> ")
if command == "help":
print('''Welcome to Python 10.95's help utility!
If this is your first time using Python, you should definitely check out
the tutorial on the Internet at https://docs.python.org/10.95/tutorial/.
Enter the name of any module, keyword, or topic to get help on writing
Python programs and using Python modules. To quit this help utility and
return to the interpreter, just type "quit".
To get a list of available modules, keywords, symbols, or topics, type
"modules", "keywords", "symbols", or "topics". Each module also comes
with a one-line summary of what it does; to list the modules whose name
or summary contain a given string such as "spam", type "modules spam".''')
elif command == "credits":
print('''Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands
for supporting Python development. See www.python.org for more information.''')
elif command == "license":
print('''Python was created in the early 1990s by Guido van Rossum at Stichting
Mathematisch Centrum (CWI, see http://www.cwi.nl) in the Netherlands
as a successor of a language called ABC. Guido remains Python's
principal author, although it includes many contributions from others.
In 1995, Guido continued his work on Python at the Corporation for
National Research Initiatives (CNRI, see http://www.cnri.reston.va.us)
in Reston, Virginia where he released several versions of the
software.
In May 2000, Guido and the Python core development team moved to
BeOpen.com to form the BeOpen PythonLabs team. In October of the same
year, the PythonLabs team moved to Digital Creations, which became
Zope Corporation. In 2001, the Python Software Foundation (PSF, see
https://www.python.org/psf/) was formed, a non-profit organization
created specifically to own Python-related Intellectual Property.
Zope Corporation was a sponsoring member of the PSF.''')
else:
input()

View File

@@ -0,0 +1,137 @@
# -*- coding: utf-8 -*-
from PyQt5 import QtCore, QtGui, QtWidgets
import sys
import webbrowser
import time
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(457, 449)
MainWindow.setMinimumSize(QtCore.QSize(457, 449))
MainWindow.setMaximumSize(QtCore.QSize(457, 449))
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.label = QtWidgets.QLabel(self.centralwidget)
self.label.setGeometry(QtCore.QRect(50, -20, 381, 91))
self.label.setStyleSheet("text-color: rgb(85, 85, 255);\n"
"font: 87 40pt \"Arial Black\";")
self.label.setObjectName("label")
self.textBrowser = QtWidgets.QTextBrowser(self.centralwidget)
self.textBrowser.setGeometry(QtCore.QRect(10, 60, 441, 35))
self.textBrowser.setTextInteractionFlags(QtCore.Qt.NoTextInteraction)
self.textBrowser.setObjectName("textBrowser")
self.progressBar = QtWidgets.QProgressBar(self.centralwidget)
self.progressBar.setEnabled(False)
self.progressBar.setGeometry(QtCore.QRect(10, 380, 441, 23))
self.progressBar.setProperty("value", 0)
self.progressBar.setObjectName("progressBar")
self.pushButton = QtWidgets.QPushButton(self.centralwidget)
self.pushButton.setEnabled(False)
self.pushButton.setGeometry(QtCore.QRect(10, 250, 221, 41))
self.pushButton.setObjectName("pushButton")
self.label_2 = QtWidgets.QLabel(self.centralwidget)
self.label_2.setGeometry(QtCore.QRect(110, 410, 241, 16))
self.label_2.setObjectName("label_2")
self.readyLink = QtWidgets.QPushButton(self.centralwidget)
self.readyLink.setGeometry(QtCore.QRect(10, 100, 221, 31))
self.readyLink.setObjectName("readyLink")
self.registerSite = QtWidgets.QPushButton(self.centralwidget)
self.registerSite.setEnabled(False)
self.registerSite.setGeometry(QtCore.QRect(230, 100, 221, 31))
self.registerSite.setObjectName("registerSite")
self.textBrowser_2 = QtWidgets.QTextBrowser(self.centralwidget)
self.textBrowser_2.setGeometry(QtCore.QRect(10, 130, 441, 81))
self.textBrowser_2.setObjectName("textBrowser_2")
self.lineEdit = QtWidgets.QLineEdit(self.centralwidget)
self.lineEdit.setEnabled(False)
self.lineEdit.setGeometry(QtCore.QRect(10, 220, 321, 20))
self.lineEdit.setObjectName("lineEdit")
self.pushButton_2 = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_2.setEnabled(False)
self.pushButton_2.setGeometry(QtCore.QRect(340, 220, 101, 23))
self.pushButton_2.setObjectName("pushButton_2")
self.pushButton_3 = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_3.setEnabled(False)
self.pushButton_3.setGeometry(QtCore.QRect(230, 250, 221, 41))
self.pushButton_3.setObjectName("pushButton_3")
self.pushButton_4 = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_4.setEnabled(False)
self.pushButton_4.setGeometry(QtCore.QRect(10, 300, 441, 71))
self.pushButton_4.setStyleSheet("font: 26pt \"MS Shell Dlg 2\";")
self.pushButton_4.setObjectName("pushButton_4")
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 457, 21))
self.menubar.setObjectName("menubar")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "localhost.mc"))
self.label.setText(_translate("MainWindow", "<html><head/><body><p>localhost.mc</p></body></html>"))
self.textBrowser.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:\'MS Shell Dlg 2\'; font-size:8.25pt; 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;\"><span style=\" font-size:16pt;\">The world\'s best Minecraft multiversion server</span></p></body></html>"))
self.pushButton.setText(_translate("MainWindow", "Скачать клиент"))
self.label_2.setText(_translate("MainWindow", "Спасибо KorvusTeam за перевод на все языки"))
self.readyLink.setText(_translate("MainWindow", "Подготовить регистрационную ссылку"))
self.registerSite.setText(_translate("MainWindow", "Перейти на сайт для регистрации"))
self.textBrowser_2.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:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">!ВНИМАНИЕ!</p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">На сайте вам нужно будет ввести регистрационные данные, но без вашего согласия мы не будем их использовать. Не переживайте, данные не будут переданы третьим лицам, также все донаты на сервер будут осуществляться только с вашего согласия</p></body></html>"))
self.lineEdit.setPlaceholderText(_translate("MainWindow", "Код подтверждения с почты"))
self.pushButton_2.setText(_translate("MainWindow", "Подтвердить"))
self.pushButton_3.setText(_translate("MainWindow", "Проверить файлы"))
self.pushButton_4.setText(_translate("MainWindow", "ИГРАТЬ"))
app = QtWidgets.QApplication(sys.argv)
MainWindow = QtWidgets.QMainWindow()
ui = Ui_MainWindow()
ui.setupUi(MainWindow)
MainWindow.show()
def getReadyLink():
time.sleep(0.1)
while ui.progressBar.value() < 100:
ui.progressBar.setValue(ui.progressBar.value() + 1)
time.sleep(0.02)
ui.progressBar.setValue(0)
ui.registerSite.setEnabled(True)
def openRegister():
webbrowser.open("https://ti-pidor.herokuapp.com/")
ui.lineEdit.setEnabled(True)
ui.pushButton_2.setEnabled(True)
def getCode():
if ui.lineEdit.text() == "B3BR4-SL4V3-314D00R":
ui.pushButton.setEnabled(True)
ui.pushButton_3.setEnabled(True)
def download():
while ui.progressBar.value() < 100:
ui.progressBar.setValue(ui.progressBar.value() + 1)
time.sleep(0.15)
ui.pushButton_4.setEnabled(True)
ui.readyLink.clicked.connect(getReadyLink)
ui.registerSite.clicked.connect(openRegister)
ui.pushButton_2.clicked.connect(getCode)
ui.pushButton.clicked.connect(download)
sys.exit(app.exec_())