[PyQt] pyuic and phonon from PyQt4 of PyKDE4

Marcos Dione mdione at grulic.org.ar
Sat Dec 26 17:26:01 GMT 2009


    some distros seem to prefer KDE's phonon to Qt's phonon. this means that qt
is compiled with the -nophonon option and then use phonon from the kdesupport
module. this reflects in the python bindings, for instance, in the following
way:

 File "/usr/lib/python2.6/site-packages/PyQt4/uic/__init__.py", line 158, in loadUiType
 exec(code_string.getvalue(), ui_globals)
 File "<string>", line 73, in <module>
 ImportError: cannot import name phonon

    it's trying to import 'phonon' from PyQt4 for a .ui file that has a
'Phonon.SeekSlider'. the altarnative is to import 'phonon' from 'PyKDE4'. I
tracked this down to the code generator and made a patch to try to solve it.
it's attached. any comments?

-- 
(Not so) Random fortune:
11:58 < m4rgin4l> yo por plata me pongo cualquier cosa
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pyqt-phonon_from_pyqt4_or_pykde4.diff
Type: text/x-diff
Size: 1101 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20091226/ec27d08e/pyqt-phonon_from_pyqt4_or_pykde4.bin


More information about the PyQt mailing list