| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
from PyQt5 import QtCore, QtGui, QtWidgets |
| 10 |
|
| 11 |
|
| 12 |
class Ui_rectangular_patch_editor(object): |
| 13 |
def setupUi(self, rectangular_patch_editor): |
| 14 |
rectangular_patch_editor.setObjectName("rectangular_patch_editor") |
| 15 |
rectangular_patch_editor.resize(900, 630) |
| 16 |
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) |
| 17 |
sizePolicy.setHorizontalStretch(1) |
| 18 |
sizePolicy.setVerticalStretch(1) |
| 19 |
sizePolicy.setHeightForWidth(rectangular_patch_editor.sizePolicy().hasHeightForWidth()) |
| 20 |
rectangular_patch_editor.setSizePolicy(sizePolicy) |
| 21 |
rectangular_patch_editor.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates)) |
| 22 |
rectangular_patch_editor.setFrameShape(QtWidgets.QFrame.Panel) |
| 23 |
rectangular_patch_editor.setFrameShadow(QtWidgets.QFrame.Sunken) |
| 24 |
self.verticalLayout = QtWidgets.QVBoxLayout(rectangular_patch_editor) |
| 25 |
self.verticalLayout.setObjectName("verticalLayout") |
| 26 |
self.horizontalLayout = QtWidgets.QHBoxLayout() |
| 27 |
self.horizontalLayout.setObjectName("horizontalLayout") |
| 28 |
self.messageLabel = QtWidgets.QLabel(rectangular_patch_editor) |
| 29 |
self.messageLabel.setObjectName("messageLabel") |
| 30 |
self.horizontalLayout.addWidget(self.messageLabel) |
| 31 |
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) |
| 32 |
self.horizontalLayout.addItem(spacerItem) |
| 33 |
self.buttonBox = QtWidgets.QDialogButtonBox(rectangular_patch_editor) |
| 34 |
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok) |
| 35 |
self.buttonBox.setObjectName("buttonBox") |
| 36 |
self.horizontalLayout.addWidget(self.buttonBox) |
| 37 |
self.verticalLayout.addLayout(self.horizontalLayout) |
| 38 |
|
| 39 |
self.retranslateUi(rectangular_patch_editor) |
| 40 |
QtCore.QMetaObject.connectSlotsByName(rectangular_patch_editor) |
| 41 |
|
| 42 |
def retranslateUi(self, rectangular_patch_editor): |
| 43 |
_translate = QtCore.QCoreApplication.translate |
| 44 |
rectangular_patch_editor.setWindowTitle(_translate("rectangular_patch_editor", "Frame")) |
| 45 |
self.messageLabel.setText(_translate("rectangular_patch_editor", "Message to be displayed")) |
| 46 |
self.buttonBox.setToolTip(_translate("rectangular_patch_editor", "Press \'OK\' to save the selection and exit, or \'cancel\' to discard the selection.")) |
| 47 |
|
| 48 |
|