Answers for "loading in pyqt5"

0

loading in pyqt5

self.loading = QLabel() # create the QLabel
self.layout.addWidget(self.loading) # add it to our layout
movie = QMovie("myGifLoading.gif") # Create a QMovie from our gif
self.loading.setMovie(movie) # use setMovie function in our QLabel
self.loading.setFixedSize(60, 60) # set its size
self.loading.setMaximumWidth(50) # set Max width
movie.start() # now start the gif
# and to stop the gif
movie.stop()

# you use show() and hide() function to make it visible or not where you want it
Posted by: Guest on November-19-2020

Python Answers by Framework

Browse Popular Code Answers by Language