[PyQt] pykde4 using KConfig XT - tutorial

Jim Bublitz jbublitz at nwinternet.com
Sat Jan 12 18:32:30 GMT 2008


On Saturday 12 January 2008 02:09, Simon Edwards wrote:
> Hi,
>
> Peter Liedler wrote:
> > I am trying to autogenerate a configuration dialog with a
> > KConfigSkeleton. I just can't get it working.
>
> What went wrong?
>
> > Can you post me a sample, tutorial or something else on how to call a
> > config dialog in pykde4?
>
> Not that I'm aware of.
>
> > I tried it with a .kcfg file as described in the tutorials on kde.org,
> > but there was no success.
>
> If I remember rightly, the kconfig stuff in KDE uses a lot of C++
> templates which makes bindings difficult. There is a good chance that
> the config stuff is incomplete.
>
> Jim appears to be off-line for a while now and I've had to try keeping
> the kconfig stuff up to date and working. If it is screwed up, then it
> is probably my fault. :)

The template stuff  (KConfigSkeleton.Item* classes) is all implemented in 
PyKDE4 and should work. It doesn't include the patches from PyKDE3 that sort 
of simulated pass by reference/reference variables for those classes - those 
have been dropped.

Someone had promised to write a tutorial in exchange for some patches, but it 
was never done. I've never used KConfigSkeleton and have no idea how to use 
it., and therefore no way to test it.

There is some config file generation stuff in KDE4, but I haven't looked much 
at that either - it seemed like it might be possible to get it to work for 
PyKDE4 (but I'm not sure about that). I would suspect that's what's not 
working.

Jim


More information about the PyQt mailing list