Hi!

I donot know how to use QProcess...Can somebody show me a example?

In a Python console, I:

####################
from PyQt4 import QtCore

player = QtCore.QProcess()
opt = 'eyes.mpeg'
player.start('mplayer', ['eyes.mpeg'])
####################

then a mplayer will show, but how to give mplayer more option?

####################
from PyQt4 import QtCore

player = QtCore.QProcess()
opt = 'eyes.mpeg'
player.start('mplayer', ['eyes.mpeg', '-ao null'])
####################
This code doesNOT work!

why?

Thank you!!



--
LinuX Power

_______________________________________________
PyKDE mailing list    [email protected]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to