def loadFile(self, filePath):
        """Loads a file"""
        self._filePath = filePath

        if self._proc.state() != QProcess.Running:
            self._kill()
            self._run(self._filePath)
        else:
            self._execute("pausing_keep_force pt_step 1")
            self._execute("get_property pause")
            self._execute("loadfile \"%s\"" % self._filePath)

        self._data.reset()
        self.videoDataChanged.emit(False)
        self._changePlayingState(True)
def loadFile ( self , filePath ) : self . _filePath = filePath if self . _proc . state ( ) != QProcess . Running : self . _kill ( ) self . _run ( self . _filePath ) else : self . _execute ( "pausing_keep_force pt_step 1" ) self . _execute ( "get_property pause" ) self . _execute ( "loadfile \"%s\"" % self . _filePath ) self . _data . reset ( ) self . videoDataChanged . emit ( False ) self . _changePlayingState ( True )
Loads a file