def setupUi(self, Dialog):
    Dialog.setObjectName('Dialog')
    Dialog.resize(493, 380)
    self.verticalLayout = QtWidgets.QVBoxLayout(Dialog)
    self.verticalLayout.setObjectName('verticalLayout')
    self.scrollArea = QtWidgets.QScrollArea(Dialog)
    self.scrollArea.setWidgetResizable(True)
    self.scrollArea.setObjectName('scrollArea')
    self.scrollAreaWidgetContents = QtWidgets.QWidget()
    self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 473, 327))
    self.scrollAreaWidgetContents.setObjectName('scrollAreaWidgetContents')
    self.scrollArea.setWidget(self.scrollAreaWidgetContents)
    self.verticalLayout.addWidget(self.scrollArea)
    self.buttonBox = QtWidgets.QDialogButtonBox(Dialog)
    self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
    self.buttonBox.setStandardButtons((QtWidgets.QDialogButtonBox.Cancel | QtWidgets.QDialogButtonBox.Ok))
    self.buttonBox.setObjectName('buttonBox')
    self.verticalLayout.addWidget(self.buttonBox)
    self.retranslateUi(Dialog)
    self.buttonBox.accepted.connect(Dialog.accept)
    self.buttonBox.rejected.connect(Dialog.reject)
    QtCore.QMetaObject.connectSlotsByName(Dialog)
def setupUi(self, Dialog):
    Dialog.setObjectName('Dialog')
    Dialog.resize(493, 380)
    self.verticalLayout = QtWidgets.QVBoxLayout(Dialog)
    self.verticalLayout.setObjectName('verticalLayout')
    self.scrollArea = QtWidgets.QScrollArea(Dialog)
    self.scrollArea.setWidgetResizable(True)
    self.scrollArea.setObjectName('scrollArea')
    self.scrollAreaWidgetContents = QtWidgets.QWidget()
    self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 473, 327))
    self.scrollAreaWidgetContents.setObjectName('scrollAreaWidgetContents')
    self.scrollArea.setWidget(self.scrollAreaWidgetContents)
    self.verticalLayout.addWidget(self.scrollArea)
    self.buttonBox = QtWidgets.QDialogButtonBox(Dialog)
    self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
    self.buttonBox.setStandardButtons((QtWidgets.QDialogButtonBox.Cancel | QtWidgets.QDialogButtonBox.Ok))
    self.buttonBox.setObjectName('buttonBox')
    self.verticalLayout.addWidget(self.buttonBox)
    self.retranslateUi(Dialog)
    self.buttonBox.accepted.connect(Dialog.accept)
    self.buttonBox.rejected.connect(Dialog.reject)
    QtCore.QMetaObject.connectSlotsByName(Dialog)