Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from PyQt6 import QtCore, QtGui, QtWidgets
- class Ui_Form(object):
- def setupUi(self, Form):
- Form.setObjectName("Form")
- Form.resize(400, 41)
- self.horizontalLayout = QtWidgets.QHBoxLayout(Form)
- self.horizontalLayout.setObjectName("horizontalLayout")
- self.label = QtWidgets.QLabel(Form)
- self.label.setObjectName("label")
- self.horizontalLayout.addWidget(self.label)
- self.pushButton = QtWidgets.QPushButton(Form)
- self.pushButton.setObjectName("pushButton")
- self.horizontalLayout.addWidget(self.pushButton)
- self.retranslateUi(Form)
- QtCore.QMetaObject.connectSlotsByName(Form)
- def retranslateUi(self, Form):
- _translate = QtCore.QCoreApplication.translate
- Form.setWindowTitle(_translate("Form", "Form"))
- self.label.setText(_translate("Form", "TextLabel"))
- self.pushButton.setText(_translate("Form", "PushButton"))
- 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())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement