Source code for pyleecan.GUI.Dialog.DMachineSetup.SWSlot.Gen_SWSlot
# -*- coding: utf-8 -*-
"""File generated according to SWSlot/gen_list.json
WARNING! All changes made in this file will be lost!
"""
from pyleecan.GUI.Dialog.DMachineSetup.SWSlot.Ui_SWSlot import Ui_SWSlot
[docs]class Gen_SWSlot(Ui_SWSlot):
[docs] def setupUi(self, SWSlot):
"""Abstract class to update the widget according to the csv doc"""
Ui_SWSlot.setupUi(self, SWSlot)
# Setup of in_Zs
txt = self.tr(u"""slot number""")
self.in_Zs.setWhatsThis(txt)
self.in_Zs.setToolTip(txt)
# Setup of si_Zs
self.si_Zs.setMinimum(0)
self.si_Zs.setMaximum(999999)
txt = self.tr(u"""slot number""")
self.si_Zs.setWhatsThis(txt)
self.si_Zs.setToolTip(txt)