1
This commit is contained in:
@@ -2,7 +2,6 @@ import urllib.request, os, time, sys
|
|||||||
from subprocess import *
|
from subprocess import *
|
||||||
from PyQt5 import *
|
from PyQt5 import *
|
||||||
|
|
||||||
|
|
||||||
launchfolder = os.getcwd()
|
launchfolder = os.getcwd()
|
||||||
offprojects = launchfolder + "/OfficialProjects/"
|
offprojects = launchfolder + "/OfficialProjects/"
|
||||||
launcherfiles = offprojects + "/LAUNCHERFILES/"
|
launcherfiles = offprojects + "/LAUNCHERFILES/"
|
||||||
@@ -18,7 +17,7 @@ if not os.path.exists(launcherfiles):
|
|||||||
|
|
||||||
################### Self-updataing launcher #####################
|
################### Self-updataing launcher #####################
|
||||||
# urllib.request.urlretrieve(launchergithuburl, "KOTIKOT_launcher.py")
|
# urllib.request.urlretrieve(launchergithuburl, "KOTIKOT_launcher.py")
|
||||||
urllib.request.urlretrieve(launcherguigithuburl, launcherfiles + "KOTIKOTlauncherMain.py")
|
# urllib.request.urlretrieve(launcherguigithuburl, launcherfiles + "KOTIKOTlauncherMain.py")
|
||||||
|
|
||||||
################### Launching GUI #####################
|
################### Launching GUI #####################
|
||||||
# Popen('python ' + launcherfiles + "KOTIKOTlauncherMain.py", shell=True)
|
# Popen('python ' + launcherfiles + "KOTIKOTlauncherMain.py", shell=True)
|
||||||
@@ -32,7 +31,29 @@ KOTIKOTlauncher.show()
|
|||||||
|
|
||||||
################### Launching programs (func) #####################
|
################### Launching programs (func) #####################
|
||||||
def launchAutoShipper():
|
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 #####################
|
################### Checking buttons #####################
|
||||||
ui.pushButton_1.clicked.connect(launchAutoShipper)
|
ui.pushButton_1.clicked.connect(launchAutoShipper)
|
||||||
|
|||||||
30
OfficialProjects/LAUNCHERFILES/KOTIKOTlauncherReminder.py
Normal file
30
OfficialProjects/LAUNCHERFILES/KOTIKOTlauncherReminder.py
Normal file
@@ -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", "<html><head/><body><p>Some apps will open in terminal.</p><p>You should check it!</p></body></html>"))
|
||||||
|
|
||||||
|
|
||||||
|
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_())
|
||||||
Reference in New Issue
Block a user