Last active
March 8, 2024 08:15
-
-
Save jtornero/263b224f26757b5e84b1905637d5b2ed to your computer and use it in GitHub Desktop.
Actualizando el QProgressBar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def miConversion(self,imagenes: list): | |
total=len(imagenes) | |
# imagina que hay una funcion que añade las imagenes al video una detrás de otra, seme ocurre esto | |
for indice,imagen in enumerate(imagenes): | |
progreso=round(indice/total*100) | |
video.add(imagen) | |
self.barraProgreso.setValue(progreso) | |
# Claro, lo que ocurre es que si el proceso de creación del video no es tan transparente, malamente podrás hacer el cálculo y modificar el valor de la barra de progreso, imagínate | |
def miConversion(self,imagenes: list): | |
video.create(imagenes) # ¿Dónde metes? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment