dev pip_gif

This commit is contained in:
neonb 2025-01-22 15:21:08 +01:00
parent eb79ba6b72
commit 6bfb62a6e8

View File

@ -2,6 +2,7 @@ from PyQt5.QtGui import QMovie
import logging import logging
from ui.test_test import Test_Test from ui.test_test import Test_Test
import time import time
from PyQt5.QtCore import QByteArray
logging.basicConfig(level=logging.INFO) logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
@ -19,8 +20,8 @@ class Test_Pipe_Cutter(Test_Test):
self.current_cut_length = 0 self.current_cut_length = 0
self.get_connection = None self.get_connection = None
gif_path = config.get("config/instruction_images/st-ten-10/pipe.gif",) # GIF file path gif_path = "config/instruction_images/st-ten-10/pipe.gif"
self.movie = QMovie(gif_path) self.movie = QMovie(gif_path,QByteArray(), self)
self.pipe_gif.setMovie(self.movie) self.pipe_gif.setMovie(self.movie)
self.movie.start() self.movie.start()