Skip to content

Commit 569c3de

Browse files
authored
Update main.py
1 parent 440314c commit 569c3de

File tree

1 file changed

+0
-6
lines changed
  • ProgressBarCircular con ardino

1 file changed

+0
-6
lines changed

ProgressBarCircular con ardino/main.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@
22
# @autor: Magno Efren
33
# Youtube: https://www.youtube.com/c/MagnoEfren
44

5-
65
import sys
76
from ui_progressBarCircular import *
87
from comunicacion_serial import Comunicacion
98
from PyQt5.QtCore import QTimer
109

11-
1210
class MiApp(QtWidgets.QMainWindow):
1311
def __init__(self,*args, **kwargs):
1412
super().__init__()
@@ -27,7 +25,6 @@ def __init__(self,*args, **kwargs):
2725
self.ui.actualizar.clicked.connect(self.mostrar_barra)
2826
self.ui.desconectar.clicked.connect(self.desconectar)
2927

30-
3128
def datos_arduino(self, data):
3229
self.nivel = float(data)
3330

@@ -38,8 +35,6 @@ def conectar(self):
3835
self.serial.arduino.baudrate = baud
3936
self.serial.conexion_serial()
4037

41-
42-
4338
def desconectar(self):
4439
self.serial.desconectar()
4540

@@ -59,7 +54,6 @@ def progressbar(self):
5954
background-color: qconicalgradient(cx:0.5, cy:0.5, angle:90, stop:{stop1}
6055
rgba(255, 0, 55, 255), stop:{stop2} rgba(255, 0, 0, 30));
6156
}"""
62-
6357
val = (self.nivel)/4.91
6458

6559
stop1 = str(abs(val - 0.001))

0 commit comments

Comments
 (0)