Advertisement
Guest User

Untitled

a guest
Aug 18th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. C:UsersAngelDesktopunodos-uno
  2.  
  3. from PyQt5.QtWidgets import QMainWindow,QApplication
  4. from PyQt5 import QtGui
  5. import pathlib
  6. import os
  7. from PyQt5 import uic
  8.  
  9.  
  10. class Main(QMainWindow):
  11. def __init__(self):
  12. QMainWindow.__init__(self)
  13. uic.loadUi("ui/Prueba.ui",self)
  14.  
  15. absolute = os.path.realpath("Animacion1.gif")
  16. print(absolute)
  17. self.movie = QtGui.QMovie(absolute)
  18. self.label.setMovie(self.movie)
  19. self.movie.start()
  20.  
  21. app = QApplication([])
  22. m = Main()
  23. m.show()
  24. app.exec_()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement