I don't understand why i'm getting an indentation error with that type of code. My function is inside a class and the indentation is "normal".
def SelectBarriere(self, NumShaker, B_Bar1, B_Bar2, B_Bar3):
self.Lab_IMV = Label(self, "Configuration IMV:")
self.Lab_IMV.move(1000, 250)
self.BarIMVacc = BarPourcentage(self)
self.BarIMVacc.move(1000,290)
PoidBarriere1 = self.shakers[NumShaker, 14]
PoidBarriere2 = self.shakers[NumShaker, 15]
PoidBarriere3 = self.shakers[NumShaker, 16]
if B_Bar1 == 2:
self.MasseThermique = PoidBarriere1
elif B_Bar2 == 2:
self.MasseThermique = PoidBarriere2
elif B_Bar3 == 2:
self.MasseThermique = PoidBarriere3
else:
self.MasseThermique = 0
return self.MasseThermique
The error come at this precise line.
PoidBarriere1 = self.shakers[NumShaker, 14]