{"id":347,"date":"2019-07-08T20:41:06","date_gmt":"2019-07-09T03:41:06","guid":{"rendered":"http:\/\/fx-td.com\/houdiniandchill\/?p=347"},"modified":"2019-07-08T20:41:08","modified_gmt":"2019-07-09T03:41:08","slug":"archived-post-by-cakesson","status":"publish","type":"post","link":"http:\/\/fx-td.com\/houdiniandchill\/2019\/07\/08\/archived-post-by-cakesson\/","title":{"rendered":"Archived post by cakesson"},"content":{"rendered":"<p class=\"\">class GifPlayer(PySide.QtGui.QWidget):     def __init__(self, gifFile, parent=None):          PySide.QtGui.QWidget.__init__(self, parent)                   self._gif = gifFile                  # set up the movie screen on a label         self.movie_screen = PySide.QtGui.QLabel()         # expand and center the label  #        self.movie_screen.setSizePolicy(PySide.QtGui.QSizePolicy.Expanding,  #            PySide.QtGui.QSizePolicy.Expanding)         #        self.movie_screen.setAlignment(PySide.QtCore.Qt.AlignCenter)              main_layout = PySide.QtGui.QVBoxLayout()          main_layout.addWidget(self.movie_screen)         self.setLayout(main_layout)                           # use an animated gif file you have in the working folder         # or give the full file path         self.movie = PySide.QtGui.QMovie(self._gif, PySide.QtCore.QByteArray(), self)          self.movie.setCacheMode(PySide.QtGui.QMovie.CacheAll)          self.movie.setSpeed(100)          self.movie_screen.setMovie(self.movie)          self.movie.start()<\/p>\n<p class=\"\">We used to have a gif fail player show up on export failures \ud83d\ude03<\/p>\n","protected":false},"excerpt":{"rendered":"<p>class GifPlayer(PySide.QtGui.QWidget): def __init__(self, gifFile, parent=None): PySide.QtGui.QWidget.__init__(self, parent) self._gif = gifFile # set up the movie screen on a label self.movie_screen = PySide.QtGui.QLabel() # expand and center the label # self.movie_screen.setSizePolicy(PySide.QtGui.QSizePolicy.Expanding, # PySide.QtGui.QSizePolicy.Expanding) # self.movie_screen.setAlignment(PySide.QtCore.Qt.AlignCenter) main_layout = PySide.QtGui.QVBoxLayout() main_layout.addWidget(self.movie_screen) self.setLayout(main_layout) # use an animated gif file you have in the working folder # or give &hellip; <a href=\"http:\/\/fx-td.com\/houdiniandchill\/2019\/07\/08\/archived-post-by-cakesson\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Archived post by cakesson<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[],"_links":{"self":[{"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/posts\/347"}],"collection":[{"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/comments?post=347"}],"version-history":[{"count":0,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/posts\/347\/revisions"}],"wp:attachment":[{"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/media?parent=347"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/categories?post=347"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/tags?post=347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}