Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

how to make a loading gif 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
Comment

PREVIOUS NEXT
Code Example
Python :: insert single value in dataframe using index 
Python :: how to create staff account in django 
Python :: tuple and list in python 
Python :: pandas iteration 
Python :: crop black border python 
Python :: one hot numpy 
Python :: copy content from one file to another in python 
Python :: try with multiple except python 
Python :: remove unnamed columns pandas 
Python :: Week of the year Pandas 
Python :: how to run fastapi with code python 
Python :: how to sort the dataframe in python by axis 
Python :: concatenate list of strings 
Python :: virtual mic with python 
Python :: how to reset username and password in django admin 
Python :: python dictonary set default 
Python :: python match statement 
Python :: python bubble sort 
Python :: python how to automatically restart flask sever 
Python :: python calculator file size to megabytes 
Python :: install glob module in linux 
Python :: python dict remove duplicates where items are not the same 
Python :: keyword python 
Python :: python count of letters in string 
Python :: kpss test python 
Python :: ordered dictionary 
Python :: IndentationError: unexpected indent 
Python :: double variable for loop python 
Python :: Bar Charts bokeh 
Python :: python unittest discover 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =