def notifyTimeout(self): if self.fadeOut and not self.timedOut: self.marker.setVisible(False) self.timedOut = True if self.notifyCount: self.timeoutCount += 1 if self.timeoutCount == self.notifyCount: msg = self.tr(u'No fix for %s since more than %d seconds!') % ( self.name, self.timeoutTime * self.timeoutCount / 1000) w = self.iface.messageBar().createMessage( self.tr(u'PosiView Attention'), msg) label = QLabel(w) m = QMovie(':/plugins/PosiView/hand.gif') m.setSpeed(75) label.setMovie(m) m.setParent(label) m.start() w.layout().addWidget(label) self.iface.messageBar().pushWidget( w, level=Qgis.Critical, duration=self.notifyDuration)