开发者

How to disable phonon?

How do you disab开发者_JS百科le phonon in PySide?

I am trying to use QWebpage and I don't want phonon to kick in, as the app I'm writing is a server side app, and has no need for media. I tried a few things but did not find any really relevant documentation.


A. If you use Debian/Ubuntu, remove those modules that you don't want

sudo apt-get remove python-pyside.phonon

http://packages.ubuntu.com/search?mode=exactfilename&suite=oneiric&section=all&arch=any&searchon=names&keywords=pyside

http://www.pyside.org/docs/pyside/contents.html

B.If you use setup.py package your app, you could add a excludes option

something looks like this

py2app_options = {
    ....
    "excludes" : ["PySide.phonon"],
    ....
    }

http://svn.pythonmac.org/py2app/py2app/trunk/doc/index.html#option-reference

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜