This repository has been archived by the owner on Feb 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
THOL_Launcher_Main.py
75 lines (61 loc) · 2.09 KB
/
THOL_Launcher_Main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
from PyQt5 import QtCore, QtGui, QtWidgets
#from PyQt5.QtWidgets import QApplication, QMainWindow
#from PyQt5 import QtCore, QtGui, QtWidgets, uic
#from PyQt5.QtWidgets import QApplication, QWidget, Q
from THOL_Launcher_GUI import Ui_MainWindow
import sys
#print(Ui_MainWindow.Btn_2HOL_Website.setObjectName)
#Ui_MainWindow.Btn_SaveSettings.clicked()
#qtCreatorFile = "THOL_Launcher_GUI.ui"
#Ui_MainWindow, QtBaseClass = uic.loadUi(qtCreatorFile)
'''
class MyWindow(QtWidgets.QMainWindow, Ui_MainWindow):
def __init__(self):
QtWidgets.QMainWindow.__init__(self)
Ui_MainWindow.__init__(self)
self.setupUi(self)
self.Btn_SaveSettings.clicked.connect(self.changeBtnText)
print("mööööp")
def changeBtnText(self):
buttontext = "Burger"
print("fuckin shit")
#self.Btn_SaveSettings.setText
'''
def home(self):
btn = Ui_MainWindow.Btn_SaveSettings()
#btn.clicked.connect(QtCore.QCoreApplication.instance().quit)
Ui_MainWindow.Btn_SaveSettings.clicked.connect(QtCore.QCoreApplication.instance().quit)
#theText = Ui_MainWindow.Btn_SaveSettings.setText()
#print(Ui_MainWindow.retranslateUi())
class Ui(QtWidgets.QMainWindow, Ui_MainWindow):
def __init__(self):
super(Ui, self).__init__()
uic.loadUi('THOL_Launcher_GUI.ui', self)
self.button = self.findChild(QtWidgets.QPushButton, 'Btn_SaveSettings')
self.Btn_SaveSettings.clicked.connect(self.stuff)
self.show()
def stuff(self):
print("stuffy")
'''
if __name__ == "__main__":
import sys
app = QApplication(sys.argv)
win = QMainWindow
#win.setGeometry(200,200,300,300)
#win.setWin
MainWindow = QtWidgets.QMainWindow()
ui = Ui_MainWindow()
ui.setupUi(MainWindow)
MainWindow.show()
sys.exit(app.exec_())
app.exec_()
#app = QtWidgets.QApplication(sys.argv)
'''
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
MainWindow = QtWidgets.QMainWindow()
ui = Ui_MainWindow()
ui.setupUi(MainWindow)
MainWindow.show()
sys.exit(app.exec_())