[PyKDE] help me on PyQt4 - QProcess
Marco
marco at waven.com
Mon Mar 5 03:58:30 GMT 2007
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
More information about the PyQt
mailing list