Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

how to create a 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
Comment

PREVIOUS NEXT
Code Example
Python :: pandas df sample 
Python :: get list with random numbers python 
Python :: end in print python 
Python :: face detection code 
Python :: termcolor print python 
Python :: fullscreen cmd with python 
Python :: python get pixel 
Python :: how to get circumference from radius 
Python :: list methods append in python 
Python :: python shuffle 
Python :: Write Python programs to print numbers from 1 to 10000 while loops 
Python :: python convert two dimensional list to one dimensional 
Python :: capture image raspberry pi usb camera 
Python :: How to read PDF from link in Python] 
Python :: forgot django admin password 
Python :: parentheses in python 
Python :: python modulus 
Python :: install virtual environments_brew 
Python :: counting combinations python 
Python :: python disable logging on unittest 
Python :: add readme cmd 
Python :: python dict remove duplicates where name are not the same 
Python :: modify a list with for loop and range function in python 
Python :: check if queryset is empty django template 
Python :: python serial readline 
Python :: how to access variables from a class in python 
Python :: if-else 
Python :: discord bot python time delay 
Python :: pandas currency to numbe 
Python :: remove first element from list 
ADD CONTENT
Topic
Content
Source link
Name
7+7 =