[PyKDE] Re: help me on PyQt4 - QProcess
Marco
marco at waven.com
Mon Mar 5 04:16:42 GMT 2007
^_^
I have know the answer, the every opt list cannot contain "space bar"
On 3/5/07, Marco <marco at waven.com> wrote:
> 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
>
--
LinuX Power
More information about the PyQt
mailing list