text: # -*- coding: utf-8 -*-
  
  # Form implementation generated from reading ui file 'illumination.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(482, 315)
          sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
          sizePolicy.setHorizontalStretch(0)
          sizePolicy.setVerticalStretch(0)
          sizePolicy.setHeightForWidth(Dialog.sizePolicy().hasHeightForWidth())
          Dialog.setSizePolicy(sizePolicy)
          Dialog.setMinimumSize(QtCore.QSize(0, 0))
          Dialog.setMaximumSize(QtCore.QSize(16777215, 16777215))
          self.verticalLayout = QtWidgets.QVBoxLayout(Dialog)
          self.verticalLayout.setObjectName("verticalLayout")
          self.powerControlBox = QtWidgets.QGroupBox(Dialog)
          sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.MinimumExpanding)
          sizePolicy.setHorizontalStretch(0)
          sizePolicy.setVerticalStretch(0)
          sizePolicy.setHeightForWidth(self.powerControlBox.sizePolicy().hasHeightForWidth())
          self.powerControlBox.setSizePolicy(sizePolicy)
          self.powerControlBox.setObjectName("powerControlBox")
          self.verticalLayout.addWidget(self.powerControlBox)
          self.horizontalLayout = QtWidgets.QHBoxLayout()
          self.horizontalLayout.setSpacing(2)
          self.horizontalLayout.setObjectName("horizontalLayout")
          spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
          self.horizontalLayout.addItem(spacerItem)
          self.okButton = QtWidgets.QPushButton(Dialog)
          self.okButton.setObjectName("okButton")
          self.horizontalLayout.addWidget(self.okButton)
          self.verticalLayout.addLayout(self.horizontalLayout)
  
          self.retranslateUi(Dialog)
          QtCore.QMetaObject.connectSlotsByName(Dialog)
  
      def retranslateUi(self, Dialog):
          _translate = QtCore.QCoreApplication.translate
          Dialog.setWindowTitle(_translate("Dialog", "HAL-4000 Illumination"))
          self.powerControlBox.setTitle(_translate("Dialog", "Power Control"))
          self.okButton.setText(_translate("Dialog", "Ok"))
  
  
  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_())
  
  