49 lines
1.8 KiB
Python
49 lines
1.8 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
# Form implementation generated from reading ui file 'D:\QGroup_432987409\WoHowLearn\0.M_I_pyqt\partner_625781186\QML_QtQuick_PY\QDialog中嵌入qml窗体并缩放\py_qml.ui'
|
|
#
|
|
# Created by: PyQt5 UI code generator 5.9.2
|
|
#
|
|
# WARNING! All changes made in this file will be lost!
|
|
|
|
from PyQt5 import QtCore, QtGui, QtWidgets
|
|
|
|
class Ui_Dialog(object):
|
|
def setupUi(self, Dialog):
|
|
Dialog.setObjectName("Dialog")
|
|
Dialog.resize(420, 317)
|
|
Dialog.setSizeGripEnabled(True)
|
|
self.verticalLayout = QtWidgets.QVBoxLayout(Dialog)
|
|
self.verticalLayout.setObjectName("verticalLayout")
|
|
self.widget = QtWidgets.QWidget(Dialog)
|
|
self.widget.setObjectName("widget")
|
|
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.widget)
|
|
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
|
self.pushButton = QtWidgets.QPushButton(self.widget)
|
|
self.pushButton.setObjectName("pushButton")
|
|
self.verticalLayout_2.addWidget(self.pushButton)
|
|
self.widget_2 = QtWidgets.QWidget(self.widget)
|
|
self.widget_2.setStyleSheet("background-color: rgb(85, 255, 127);")
|
|
self.widget_2.setObjectName("widget_2")
|
|
self.verticalLayout_2.addWidget(self.widget_2)
|
|
self.verticalLayout.addWidget(self.widget)
|
|
|
|
self.retranslateUi(Dialog)
|
|
QtCore.QMetaObject.connectSlotsByName(Dialog)
|
|
|
|
def retranslateUi(self, Dialog):
|
|
_translate = QtCore.QCoreApplication.translate
|
|
Dialog.setWindowTitle(_translate("Dialog", "Dialog"))
|
|
self.pushButton.setText(_translate("Dialog", "PushButton"))
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
import sys
|
|
app = QtWidgets.QApplication(sys.argv)
|
|
Dialog = QtWidgets.QDialog()
|
|
ui = Ui_Dialog()
|
|
ui.setupUi(Dialog)
|
|
Dialog.show()
|
|
sys.exit(app.exec_())
|
|
|