Good morning I would like to know if there is any way in which I can show a file.gif in a qlabel.
Currently I've only tried this:
from PyQt5.QtWidgets import QMainWindow,QApplication,QLabel
class Nueva(QMainWindow):
def __init__(self):
QMainWindow.__init__(self)
self.l = QLabel(self)
self.l.resize(150,150)
self.l.setStyleSheet('Background-image:{};'.format('anima.gif'))
app = QApplication([])
n = Nueva()
n.resize(900,600)
n.show()
app.exec_()
but it did not work I appreciate your help