Answers for "create loading in pyqt"

0

create loading in pyqt

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 later we'll use : movie.stop()

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

Python Answers by Framework

Browse Popular Code Answers by Language