Exemple #1
0
def writeConductor(self, openetran):
    grid = self.Conductor.layout()
    status = 0

    # Status = 1 when no widgets are left to delete
    while status == 0:
        status = Add_Delete_Widgets.deleteConductor(self, grid)

    # Number of conductors in the system
    num = len(openetran['conductor'])

    if num > 1:
        for k in range(num - 1):
            Add_Delete_Widgets.addConductor(self, grid)

    writeWidgets(openetran, grid, 'conductor', 4, 4, 0)
Exemple #2
0
 def newConductor():
     Add_Delete_Widgets.addConductor(self, self.Conductor.layout())