Skip to content

Commit 10e0020

Browse files
authored
Update main.py
1 parent 02ff9d7 commit 10e0020

File tree

1 file changed

+1
-4
lines changed
  • ProgressBarCircular con ardino

1 file changed

+1
-4
lines changed

ProgressBarCircular con ardino/main.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ def desconectar(self):
3939
self.serial.desconectar()
4040

4141
def mostrar_barra(self):
42-
self.progressbar()
43-
42+
self.progressbar()
4443
QTimer.singleShot(20, self.mostrar_barra)
4544

4645
def puertos_disponible(self):
@@ -55,10 +54,8 @@ def progressbar(self):
5554
rgba(255, 0, 55, 255), stop:{stop2} rgba(255, 0, 0, 30));
5655
}"""
5756
val = (self.nivel)/4.91
58-
5957
stop1 = str(abs(val - 0.001))
6058
stop2 = str(val)
61-
6259
valor1 = int(float(stop1)*1000)
6360
valor2 = int(float(stop2)*1000)
6461
if (valor1>=0 and valor2<=1000) and (valor2>=0 and valor1<=1000):

0 commit comments

Comments
 (0)