Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- C:UsersAngelDesktopunodos-uno
- from PyQt5.QtWidgets import QMainWindow,QApplication
- from PyQt5 import QtGui
- import pathlib
- import os
- from PyQt5 import uic
- class Main(QMainWindow):
- def __init__(self):
- QMainWindow.__init__(self)
- uic.loadUi("ui/Prueba.ui",self)
- absolute = os.path.realpath("Animacion1.gif")
- print(absolute)
- self.movie = QtGui.QMovie(absolute)
- self.label.setMovie(self.movie)
- self.movie.start()
- app = QApplication([])
- m = Main()
- m.show()
- app.exec_()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement