32 lines
929 B
Python
32 lines
929 B
Python
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", "This app opened in terminal"))
|
|
|
|
|
|
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_())
|