Beispiel #1
0
    def showDocumentation(self, page):
        if not self.startAssistant():
            return

        ba = QtCore.QByteArray("SetSource ")
        ba.append(self.APP_DOC_PATH)

        self.proc.write(ba + page + '\0')
Beispiel #2
0
    def __init__(self, gifPath):
        self.MAX_WIDTH = 400

        super(GifWidget, self).__init__("Name")

        path = os.environ[self.gifEnv].split(os.pathsep)[0]
        gifFile = os.path.join(path, gifPath + ".gif")
        self.movie = QtGui.QMovie(gifFile, QtCore.QByteArray(), self)
        self.movie.setCacheMode(QtGui.QMovie.CacheAll)
        self.movie.setSpeed(100)
        self.setMovie(self.movie)
        self.setAlignment(QtCore.Qt.AlignHCenter)
        self.movie.start()