text: # -*- coding: utf-8 -*-
  
  # Form implementation generated from reading ui file 'C:\Users\Raphael\Desktop\Git\PyManatee\pyleecan\GUI\Dialog\DMachineSetup\SMHoleMag\PHoleM51\PHoleM51.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_PHoleM51(object):
      def setupUi(self, PHoleM51):
          PHoleM51.setObjectName("PHoleM51")
          PHoleM51.resize(630, 470)
          PHoleM51.setMinimumSize(QtCore.QSize(630, 470))
          PHoleM51.setMaximumSize(QtCore.QSize(16777215, 16777215))
          self.horizontalLayout = QtWidgets.QHBoxLayout(PHoleM51)
          self.horizontalLayout.setObjectName("horizontalLayout")
          self.verticalLayout_3 = QtWidgets.QVBoxLayout()
          self.verticalLayout_3.setObjectName("verticalLayout_3")
          self.img_slot = QtWidgets.QLabel(PHoleM51)
          sizePolicy = QtWidgets.QSizePolicy(
              QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding
          )
          sizePolicy.setHorizontalStretch(0)
          sizePolicy.setVerticalStretch(0)
          sizePolicy.setHeightForWidth(self.img_slot.sizePolicy().hasHeightForWidth())
          self.img_slot.setSizePolicy(sizePolicy)
          self.img_slot.setMinimumSize(QtCore.QSize(200, 0))
          self.img_slot.setMaximumSize(QtCore.QSize(16777215, 16777215))
          self.img_slot.setText("")
          self.img_slot.setPixmap(
              QtGui.QPixmap(":/images/images/MachineSetup/WSlot/Slot_51.PNG")
          )
          self.img_slot.setScaledContents(True)
          self.img_slot.setObjectName("img_slot")
          self.verticalLayout_3.addWidget(self.img_slot)
          self.txt_constraint = QtWidgets.QTextEdit(PHoleM51)
          sizePolicy = QtWidgets.QSizePolicy(
              QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed
          )
          sizePolicy.setHorizontalStretch(0)
          sizePolicy.setVerticalStretch(0)
          sizePolicy.setHeightForWidth(
              self.txt_constraint.sizePolicy().hasHeightForWidth()
          )
          self.txt_constraint.setSizePolicy(sizePolicy)
          self.txt_constraint.setMinimumSize(QtCore.QSize(200, 0))
          self.txt_constraint.setMaximumSize(QtCore.QSize(16777215, 60))
          self.txt_constraint.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
          self.txt_constraint.setTextInteractionFlags(
              QtCore.Qt.TextSelectableByKeyboard | QtCore.Qt.TextSelectableByMouse
          )
          self.txt_constraint.setObjectName("txt_constraint")
          self.verticalLayout_3.addWidget(self.txt_constraint)
          self.horizontalLayout.addLayout(self.verticalLayout_3)
          self.verticalLayout_2 = QtWidgets.QVBoxLayout()
          self.verticalLayout_2.setObjectName("verticalLayout_2")
          self.gridLayout = QtWidgets.QGridLayout()
          self.gridLayout.setObjectName("gridLayout")
          self.in_H0 = QtWidgets.QLabel(PHoleM51)
          self.in_H0.setObjectName("in_H0")
          self.gridLayout.addWidget(self.in_H0, 0, 0, 1, 1)
          self.lf_H0 = FloatEdit(PHoleM51)
          self.lf_H0.setObjectName("lf_H0")
          self.gridLayout.addWidget(self.lf_H0, 0, 1, 1, 1)
          self.unit_H0 = QtWidgets.QLabel(PHoleM51)
          self.unit_H0.setObjectName("unit_H0")
          self.gridLayout.addWidget(self.unit_H0, 0, 2, 1, 1)
          self.in_H1 = QtWidgets.QLabel(PHoleM51)
          self.in_H1.setObjectName("in_H1")
          self.gridLayout.addWidget(self.in_H1, 1, 0, 1, 1)
          self.lf_H1 = FloatEdit(PHoleM51)
          self.lf_H1.setObjectName("lf_H1")
          self.gridLayout.addWidget(self.lf_H1, 1, 1, 1, 1)
          self.unit_H1 = QtWidgets.QLabel(PHoleM51)
          self.unit_H1.setObjectName("unit_H1")
          self.gridLayout.addWidget(self.unit_H1, 1, 2, 1, 1)
          self.in_H2 = QtWidgets.QLabel(PHoleM51)
          self.in_H2.setObjectName("in_H2")
          self.gridLayout.addWidget(self.in_H2, 2, 0, 1, 1)
          self.lf_H2 = FloatEdit(PHoleM51)
          self.lf_H2.setObjectName("lf_H2")
          self.gridLayout.addWidget(self.lf_H2, 2, 1, 1, 1)
          self.unit_H2 = QtWidgets.QLabel(PHoleM51)
          self.unit_H2.setObjectName("unit_H2")
          self.gridLayout.addWidget(self.unit_H2, 2, 2, 1, 1)
          self.in_W0 = QtWidgets.QLabel(PHoleM51)
          self.in_W0.setObjectName("in_W0")
          self.gridLayout.addWidget(self.in_W0, 3, 0, 1, 1)
          self.lf_W0 = FloatEdit(PHoleM51)
          self.lf_W0.setObjectName("lf_W0")
          self.gridLayout.addWidget(self.lf_W0, 3, 1, 1, 1)
          self.unit_W0 = QtWidgets.QLabel(PHoleM51)
          self.unit_W0.setObjectName("unit_W0")
          self.gridLayout.addWidget(self.unit_W0, 3, 2, 1, 1)
          self.in_W1 = QtWidgets.QLabel(PHoleM51)
          self.in_W1.setObjectName("in_W1")
          self.gridLayout.addWidget(self.in_W1, 4, 0, 1, 1)
          self.lf_W1 = FloatEdit(PHoleM51)
          self.lf_W1.setObjectName("lf_W1")
          self.gridLayout.addWidget(self.lf_W1, 4, 1, 1, 1)
          self.unit_W1 = QtWidgets.QLabel(PHoleM51)
          self.unit_W1.setObjectName("unit_W1")
          self.gridLayout.addWidget(self.unit_W1, 4, 2, 1, 1)
          self.in_W2 = QtWidgets.QLabel(PHoleM51)
          self.in_W2.setObjectName("in_W2")
          self.gridLayout.addWidget(self.in_W2, 5, 0, 1, 1)
          self.lf_W2 = FloatEdit(PHoleM51)
          self.lf_W2.setObjectName("lf_W2")
          self.gridLayout.addWidget(self.lf_W2, 5, 1, 1, 1)
          self.unit_W2 = QtWidgets.QLabel(PHoleM51)
          self.unit_W2.setObjectName("unit_W2")
          self.gridLayout.addWidget(self.unit_W2, 5, 2, 1, 1)
          self.in_W3 = QtWidgets.QLabel(PHoleM51)
          self.in_W3.setObjectName("in_W3")
          self.gridLayout.addWidget(self.in_W3, 6, 0, 1, 1)
          self.lf_W3 = FloatEdit(PHoleM51)
          self.lf_W3.setObjectName("lf_W3")
          self.gridLayout.addWidget(self.lf_W3, 6, 1, 1, 1)
          self.unit_W3 = QtWidgets.QLabel(PHoleM51)
          self.unit_W3.setObjectName("unit_W3")
          self.gridLayout.addWidget(self.unit_W3, 6, 2, 1, 1)
          self.in_W4 = QtWidgets.QLabel(PHoleM51)
          self.in_W4.setObjectName("in_W4")
          self.gridLayout.addWidget(self.in_W4, 7, 0, 1, 1)
          self.lf_W4 = FloatEdit(PHoleM51)
          self.lf_W4.setObjectName("lf_W4")
          self.gridLayout.addWidget(self.lf_W4, 7, 1, 1, 1)
          self.unit_W4 = QtWidgets.QLabel(PHoleM51)
          self.unit_W4.setObjectName("unit_W4")
          self.gridLayout.addWidget(self.unit_W4, 7, 2, 1, 1)
          self.in_W5 = QtWidgets.QLabel(PHoleM51)
          self.in_W5.setObjectName("in_W5")
          self.gridLayout.addWidget(self.in_W5, 8, 0, 1, 1)
          self.lf_W5 = FloatEdit(PHoleM51)
          self.lf_W5.setObjectName("lf_W5")
          self.gridLayout.addWidget(self.lf_W5, 8, 1, 1, 1)
          self.unit_W5 = QtWidgets.QLabel(PHoleM51)
          self.unit_W5.setObjectName("unit_W5")
          self.gridLayout.addWidget(self.unit_W5, 8, 2, 1, 1)
          self.in_W6 = QtWidgets.QLabel(PHoleM51)
          self.in_W6.setObjectName("in_W6")
          self.gridLayout.addWidget(self.in_W6, 9, 0, 1, 1)
          self.lf_W6 = FloatEdit(PHoleM51)
          self.lf_W6.setObjectName("lf_W6")
          self.gridLayout.addWidget(self.lf_W6, 9, 1, 1, 1)
          self.unit_W6 = QtWidgets.QLabel(PHoleM51)
          self.unit_W6.setObjectName("unit_W6")
          self.gridLayout.addWidget(self.unit_W6, 9, 2, 1, 1)
          self.in_W7 = QtWidgets.QLabel(PHoleM51)
          self.in_W7.setObjectName("in_W7")
          self.gridLayout.addWidget(self.in_W7, 10, 0, 1, 1)
          self.lf_W7 = FloatEdit(PHoleM51)
          self.lf_W7.setObjectName("lf_W7")
          self.gridLayout.addWidget(self.lf_W7, 10, 1, 1, 1)
          self.unit_W7 = QtWidgets.QLabel(PHoleM51)
          self.unit_W7.setObjectName("unit_W7")
          self.gridLayout.addWidget(self.unit_W7, 10, 2, 1, 1)
          self.verticalLayout_2.addLayout(self.gridLayout)
          self.g_output = QtWidgets.QGroupBox(PHoleM51)
          self.g_output.setMinimumSize(QtCore.QSize(200, 0))
          self.g_output.setObjectName("g_output")
          self.verticalLayout = QtWidgets.QVBoxLayout(self.g_output)
          self.verticalLayout.setObjectName("verticalLayout")
          self.out_slot_surface = QtWidgets.QLabel(self.g_output)
          self.out_slot_surface.setObjectName("out_slot_surface")
          self.verticalLayout.addWidget(self.out_slot_surface)
          self.out_magnet_surface = QtWidgets.QLabel(self.g_output)
          self.out_magnet_surface.setObjectName("out_magnet_surface")
          self.verticalLayout.addWidget(self.out_magnet_surface)
          self.out_alpha = QtWidgets.QLabel(self.g_output)
          self.out_alpha.setObjectName("out_alpha")
          self.verticalLayout.addWidget(self.out_alpha)
          self.out_Whole = QtWidgets.QLabel(self.g_output)
          self.out_Whole.setObjectName("out_Whole")
          self.verticalLayout.addWidget(self.out_Whole)
          self.verticalLayout_2.addWidget(self.g_output)
          self.horizontalLayout.addLayout(self.verticalLayout_2)
  
          self.retranslateUi(PHoleM51)
          QtCore.QMetaObject.connectSlotsByName(PHoleM51)
          PHoleM51.setTabOrder(self.lf_H0, self.lf_H1)
          PHoleM51.setTabOrder(self.lf_H1, self.lf_H2)
          PHoleM51.setTabOrder(self.lf_H2, self.lf_W0)
          PHoleM51.setTabOrder(self.lf_W0, self.lf_W1)
          PHoleM51.setTabOrder(self.lf_W1, self.txt_constraint)
  
      def retranslateUi(self, PHoleM51):
          _translate = QtCore.QCoreApplication.translate
          PHoleM51.setWindowTitle(_translate("PHoleM51", "Form"))
          self.txt_constraint.setHtml(
              _translate(
                  "PHoleM51",
                  '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">\n'
                  '<html><head><meta name="qrichtext" content="1" /><style type="text/css">\n'
                  "p, li { white-space: pre-wrap; }\n"
                  "</style></head><body style=\" font-family:'MS Shell Dlg 2'; font-size:7.8pt; font-weight:400; font-style:normal;\">\n"
                  '<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:12pt; font-weight:600; text-decoration: underline;">Constraints :</span></p>\n'
                  '<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:14pt;">W3+W2 &lt; W0</span></p>\n'
                  '<p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;"><br /></p></body></html>',
              )
          )
          self.in_H0.setText(_translate("PHoleM51", "H0 :"))
          self.unit_H0.setText(_translate("PHoleM51", "m"))
          self.in_H1.setText(_translate("PHoleM51", "H1 :"))
          self.unit_H1.setText(_translate("PHoleM51", "m"))
          self.in_H2.setText(_translate("PHoleM51", "H2 :"))
          self.unit_H2.setText(_translate("PHoleM51", "m"))
          self.in_W0.setText(_translate("PHoleM51", "W0 :"))
          self.unit_W0.setText(_translate("PHoleM51", "m"))
          self.in_W1.setText(_translate("PHoleM51", "W1 :"))
          self.unit_W1.setText(_translate("PHoleM51", "rad"))
          self.in_W2.setText(_translate("PHoleM51", "W2 :"))
          self.unit_W2.setText(_translate("PHoleM51", "m"))
          self.in_W3.setText(_translate("PHoleM51", "W3 :"))
          self.unit_W3.setText(_translate("PHoleM51", "m"))
          self.in_W4.setText(_translate("PHoleM51", "W4 :"))
          self.unit_W4.setText(_translate("PHoleM51", "m"))
          self.in_W5.setText(_translate("PHoleM51", "W5 :"))
          self.unit_W5.setText(_translate("PHoleM51", "m"))
          self.in_W6.setText(_translate("PHoleM51", "W6 :"))
          self.unit_W6.setText(_translate("PHoleM51", "m"))
          self.in_W7.setText(_translate("PHoleM51", "W7 :"))
          self.unit_W7.setText(_translate("PHoleM51", "m"))
          self.g_output.setTitle(_translate("PHoleM51", "Output"))
          self.out_slot_surface.setText(_translate("PHoleM51", "Slot suface : ?"))
          self.out_magnet_surface.setText(_translate("PHoleM51", "Magnet surface : ?"))
          self.out_alpha.setText(_translate("PHoleM51", "Alpha : ?"))
          self.out_Whole.setText(_translate("PHoleM51", "Wslot : ?"))
  
  
  from pyleecan.GUI.Tools.FloatEdit import FloatEdit
  from pyleecan.GUI.Resources import pyleecan_rc
  