loading in pyqt5

Solutions on MaxInterview for loading in pyqt5 by the best coders in the world

showing results for - "loading in pyqt5"
Paulina
29 Jun 2020
1self.loading = QLabel() # create the QLabel
2self.layout.addWidget(self.loading) # add it to our layout
3movie = QMovie("myGifLoading.gif") # Create a QMovie from our gif
4self.loading.setMovie(movie) # use setMovie function in our QLabel
5self.loading.setFixedSize(60, 60) # set its size
6self.loading.setMaximumWidth(50) # set Max width
7movie.start() # now start the gif
8# and to stop the gif
9movie.stop()
10
11# you use show() and hide() function to make it visible or not where you want it