[c3e7c06] | 1 | # -*- coding: utf-8 -*- |
---|
| 2 | |
---|
| 3 | # Form implementation generated from reading ui file 'message-dialog.ui' |
---|
| 4 | # |
---|
| 5 | # Created by: PyQt4 UI code generator 4.11.4 |
---|
| 6 | # |
---|
| 7 | # WARNING! All changes made in this file will be lost! |
---|
| 8 | |
---|
| 9 | from PyQt4 import QtCore, QtGui |
---|
| 10 | |
---|
| 11 | try: |
---|
| 12 | _fromUtf8 = QtCore.QString.fromUtf8 |
---|
| 13 | except AttributeError: |
---|
| 14 | def _fromUtf8(s): |
---|
| 15 | return s |
---|
| 16 | |
---|
| 17 | try: |
---|
| 18 | _encoding = QtGui.QApplication.UnicodeUTF8 |
---|
| 19 | def _translate(context, text, disambig): |
---|
| 20 | return QtGui.QApplication.translate(context, text, disambig, _encoding) |
---|
| 21 | except AttributeError: |
---|
| 22 | def _translate(context, text, disambig): |
---|
| 23 | return QtGui.QApplication.translate(context, text, disambig) |
---|
| 24 | |
---|
| 25 | class Ui_OGAMessageDialog(object): |
---|
| 26 | def setupUi(self, OGAMessageDialog): |
---|
| 27 | OGAMessageDialog.setObjectName(_fromUtf8("OGAMessageDialog")) |
---|
| 28 | OGAMessageDialog.resize(339, 188) |
---|
| 29 | sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) |
---|
| 30 | sizePolicy.setHorizontalStretch(0) |
---|
| 31 | sizePolicy.setVerticalStretch(0) |
---|
| 32 | sizePolicy.setHeightForWidth(OGAMessageDialog.sizePolicy().hasHeightForWidth()) |
---|
| 33 | OGAMessageDialog.setSizePolicy(sizePolicy) |
---|
| 34 | font = QtGui.QFont() |
---|
| 35 | font.setFamily(_fromUtf8("Verdana")) |
---|
| 36 | font.setPointSize(10) |
---|
| 37 | OGAMessageDialog.setFont(font) |
---|
| 38 | self.verticalLayoutWidget = QtGui.QWidget(OGAMessageDialog) |
---|
| 39 | self.verticalLayoutWidget.setGeometry(QtCore.QRect(10, 10, 321, 171)) |
---|
| 40 | self.verticalLayoutWidget.setObjectName(_fromUtf8("verticalLayoutWidget")) |
---|
| 41 | self.verticalLayout = QtGui.QVBoxLayout(self.verticalLayoutWidget) |
---|
| 42 | self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) |
---|
| 43 | self.message = QtGui.QTextBrowser(self.verticalLayoutWidget) |
---|
| 44 | self.message.setObjectName(_fromUtf8("message")) |
---|
| 45 | self.verticalLayout.addWidget(self.message) |
---|
| 46 | spacerItem = QtGui.QSpacerItem(20, 15, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed) |
---|
| 47 | self.verticalLayout.addItem(spacerItem) |
---|
| 48 | self.buttonBox = QtGui.QDialogButtonBox(self.verticalLayoutWidget) |
---|
| 49 | self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Ok) |
---|
| 50 | self.buttonBox.setObjectName(_fromUtf8("buttonBox")) |
---|
| 51 | self.verticalLayout.addWidget(self.buttonBox) |
---|
| 52 | |
---|
| 53 | self.retranslateUi(OGAMessageDialog) |
---|
| 54 | QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("clicked(QAbstractButton*)")), OGAMessageDialog.closeDialog) |
---|
| 55 | QtCore.QMetaObject.connectSlotsByName(OGAMessageDialog) |
---|
| 56 | |
---|
| 57 | def retranslateUi(self, OGAMessageDialog): |
---|
| 58 | OGAMessageDialog.setWindowTitle(_translate("OGAMessageDialog", "UDS Actor", None)) |
---|
| 59 | |
---|
| 60 | |
---|
| 61 | if __name__ == "__main__": |
---|
| 62 | import sys |
---|
| 63 | app = QtGui.QApplication(sys.argv) |
---|
| 64 | OGAMessageDialog = QtGui.QDialog() |
---|
| 65 | ui = Ui_OGAMessageDialog() |
---|
| 66 | ui.setupUi(OGAMessageDialog) |
---|
| 67 | OGAMessageDialog.show() |
---|
| 68 | sys.exit(app.exec_()) |
---|
| 69 | |
---|