[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#551142: python-kde4-dev: /usr/bin/pykdeuic4 symlink broken



+ Sune Vuorela (Fri, 16 Oct 2009 09:27:55 +0100):

> Hi dato

Hello!

> I'm not completely sure how pykdeuic is supposed to be used. it seems like for 
> users it doesn't matter.

I use it in the same way the regular uic-qt4 is used: you call it at
"compile" time to generate the code that builds up the interface. Since
it's Python code, at "compile" time means "when generating the tarball
to be released", so that the tarball includes directly the python code
in addition to the source. Or it could be at package build time, so that
the Debian package surely does.

> System-config-printer-kde seems to just dynamically load the .ui files on 
> demand by using some

> from PyQt4 import uic

> and a bit later
> class MyClass
>     def __init__(....)
>         uic.loadUI("path/to/ui/file.ui",self)

I see. Well, that requires that uic is installed of the user's machine.
Which is normally not the case with C++ uic, but seems to be the case
with uic for Qt in Python. (But not for KDE, since it's in the
python-kde4-dev package.)

> I guess there is two possibilities. either remove teh symlink completely or 
> make it point to where pykdeuic4.py now resides.

Please the latter. It is supposed to be an executable on the system AFAIK.

> and does changing the symlink to point to 
> /usr/share/pyshared/PyQt4/uic/pykdeuic4.py fix it for you ?

Yes, if I make the file exectuable as well.

Cheers,

-- 
- Are you sure we're good?
- Always.
        -- Rory and Lorelai




Reply to: