From 15c837773775843f6a6486b5c345e3174c95371b Mon Sep 17 00:00:00 2001 From: BarsTiger Date: Tue, 1 Jun 2021 17:12:26 +0300 Subject: [PATCH] 1 --- KOTIKOT_launcher.py | 27 +++++++++++++++-- .../LAUNCHERFILES/KOTIKOTlauncherReminder.py | 30 +++++++++++++++++++ 2 files changed, 54 insertions(+), 3 deletions(-) create mode 100644 OfficialProjects/LAUNCHERFILES/KOTIKOTlauncherReminder.py diff --git a/KOTIKOT_launcher.py b/KOTIKOT_launcher.py index 196ae94..3359b99 100644 --- a/KOTIKOT_launcher.py +++ b/KOTIKOT_launcher.py @@ -2,7 +2,6 @@ import urllib.request, os, time, sys from subprocess import * from PyQt5 import * - launchfolder = os.getcwd() offprojects = launchfolder + "/OfficialProjects/" launcherfiles = offprojects + "/LAUNCHERFILES/" @@ -18,7 +17,7 @@ if not os.path.exists(launcherfiles): ################### Self-updataing launcher ##################### # urllib.request.urlretrieve(launchergithuburl, "KOTIKOT_launcher.py") -urllib.request.urlretrieve(launcherguigithuburl, launcherfiles + "KOTIKOTlauncherMain.py") +# urllib.request.urlretrieve(launcherguigithuburl, launcherfiles + "KOTIKOTlauncherMain.py") ################### Launching GUI ##################### # Popen('python ' + launcherfiles + "KOTIKOTlauncherMain.py", shell=True) @@ -32,7 +31,29 @@ KOTIKOTlauncher.show() ################### Launching programs (func) ##################### def launchAutoShipper(): - print("meow") + autoShipperDir = offprojects + "/AutoShipper/" + autoShipperUrl = "https://raw.githubusercontent.com/BarsTiger/KOTIKOTapps_download_repo/master/OfficialProjects/AutoShipper/autoshipper.py" + + if not os.path.exists(autoShipperDir): + os.mkdir(autoShipperDir) + + autoShipper = autoShipperDir + "autoshipper.py" + urllib.request.urlretrieve(autoShipperUrl, autoShipper) + + Popen('python ' + autoShipper, shell=True) + exit() + +def launchAutoBridger(): + autoShipperDir = offprojects + "/AutoShipper/" + autoShipperUrl = "https://raw.githubusercontent.com/BarsTiger/KOTIKOTapps_download_repo/master/OfficialProjects/AutoShipper/autoshipper.py" + + if not os.path.exists(autoShipperDir): + os.mkdir(autoShipperDir) + + autoShipper = autoShipperDir + "autoshipper.py" + urllib.request.urlretrieve(autoShipperUrl, autoShipper) + + Popen('python ' + autoShipper, shell=True) ################### Checking buttons ##################### ui.pushButton_1.clicked.connect(launchAutoShipper) diff --git a/OfficialProjects/LAUNCHERFILES/KOTIKOTlauncherReminder.py b/OfficialProjects/LAUNCHERFILES/KOTIKOTlauncherReminder.py new file mode 100644 index 0000000..e2fed4e --- /dev/null +++ b/OfficialProjects/LAUNCHERFILES/KOTIKOTlauncherReminder.py @@ -0,0 +1,30 @@ +from PyQt5 import QtCore, QtGui, QtWidgets + +class Ui_Form(object): + def setupUi(self, Form): + Form.setObjectName("Form") + Form.resize(436, 98) + self.label = QtWidgets.QLabel(Form) + self.label.setGeometry(QtCore.QRect(10, 10, 411, 81)) + font = QtGui.QFont() + font.setPointSize(20) + self.label.setFont(font) + self.label.setObjectName("label") + + self.retranslateUi(Form) + QtCore.QMetaObject.connectSlotsByName(Form) + + def retranslateUi(self, Form): + _translate = QtCore.QCoreApplication.translate + Form.setWindowTitle(_translate("Form", "ALWAYS CHECK TERMINAL")) + self.label.setText(_translate("Form", "

Some apps will open in terminal.

You should check it!

")) + + +if __name__ == "__main__": + import sys + app = QtWidgets.QApplication(sys.argv) + Form = QtWidgets.QWidget() + ui = Ui_Form() + ui.setupUi(Form) + Form.show() + sys.exit(app.exec_())