[PyKDE] PyKDE-3.11rc1 release
Jim Bublitz
jbublitz at nwinternet.com
Tue May 11 03:55:01 BST 2004
On Monday May 10 2004 17:00, Karsten Künne wrote:
> I tried it on Solaris 8 and it works fine. But I still have to
> hack the kdecorepart0.cpp file in order to cast pid_t to int:
>
> --- ./kdecore/kdecorepart0.cpp.orig Mon May 10 18:25:34
> 2004 +++ ./kdecore/kdecorepart0.cpp Mon May 10 18:24:01 2004
> @@ -45989,7 +45989,7 @@
> const QValueList<int> *sipRes;
>
> Py_BEGIN_ALLOW_THREADS
> - sipRes = &sipCpp ->
> KStartupInfoData::pids(); + sipRes =
> (const QValueList<int> *)&sipCpp -> KStartupInfoData::pids();
> Py_END_ALLOW_THREADS
>
> PyObject *sipResObj =
> sipConvertFrom_QValueList_1800 ((QValueList<int> *)sipRes);
I'll look at that - I'm not sure why that's happening, as pid_t
and int are the same thing. I'm forcing it to use
QValueList<int> rather than QValueList<pid_t> just to save a
block of code - I can try adding the code for QValueList<pid_t>
(it's just cut and paste and change the 'int's).
> And during the compilation I got the following warning:
>
> g++ -c -Wno-deprecated-declarations -fPIC -O2 -w -D_REENTRANT
> -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I../extra/kde322
> -I/usr/local/products/kde/kde-3.2.2/include
> -I/usr/local/products/python/2.3.3/include/python2.3
> -I/usr/local/products/kde/qt-3.3.2/include
> -I/usr/openwin/include -o kdecorepart0.o kdecorepart0.cpp
> /usr/local/products/kde/qt-3.3.2/include/qptrlist.h: In member
> function `void QPtrList<type>::deleteItem(void*) [with type =
> KIconThemeDir]':
> /usr/local/products/kde/qt-3.3.2/include/qmap.h:457:
> instantiated from here
> /usr/local/products/kde/qt-3.3.2/include/qptrlist.h:150: note:
> neither the destructor nor the class-specific operator delete
> will be called, even if they are declared when the class is
> defined.
> I don't know whether it matters.
It shouldn't make a difference. You can probably eliminate it by
going into extra/kde322/kicontheme.h and commenting out both
lines that contain KIconThemeDir (it's defined in the cpp file
and not publicly available).
> The importtest and the uisampler worked fine but I had to
> insert a "from kdefx import *" into the uisampler between the
> kdecore and kdeui import.
Mandrake 10 seems to have the same problem. I can probably add
that to the kdeui.py file (or you can as well - just "import
kdefx" should do it).
> Good work!
Well ... there are a few bugs left besides these. Another release
coming in a few days probably.
I've already fixed the KIconThemeDir problem, but I'll look at
the other two and see if it'll compile with no errors on
Solaris.
Jim
> My environment:
>
> Solaris 8
> sip 3.10.1
> qt-3.3.2
> kde-3.2.2
>
>
> Karsten.
>
> On Saturday 08 May 2004 14:43, Jim Bublitz wrote:
> > PyKDE-3.11rc1 should be available at
> > http://riverbankcomputing.co.uk/pykde shortly. I still need
> > to send Phil an update to the PyKDE web pages there.
> >
> > Requirements:
> >
> > sip3.10.1 or sip4 (20040504 snapshot or a later snapshot or
> > release - earlier snapshots or 4.0rc3 will NOT work),
> > PyQt-3.11 or a later snapshot or release, Python2.2.2 or
> > later (earlier versions may work but haven't been tested),
> > KDE3.0.0 - 3.2.2.
> >
> > Building:
> >
> > I've tested on SuSE (8.1-9.0), RH (9.0) and Mandrake
> > (9.0-9.2), using KDE 3.0.3, several 3.1.x versions, and
> > 3.2.2. The docs (html in doc/ directory) cover the changes
> > in command line switches.
> >
> > The only major difference between this release and alpha7 is
> > that as with PyQt the full set of sip files is now copied
> > somewhere - the default is /usr/share/sip. This provides a
> > set of files in a known location for Python bindings that
> > want to import PyKDE. Since there are none of those at
> > present, you can delete those files if you need the disk
> > space (about 1.6MB). I may provide a switch to suppress
> > copying later.
> >
> > General:
> >
> > KSharedPixmap is disabled, but still in the docs. That's
> > because if you really want it, you can make it work with
> > 3.10.1 (not easily however), but I wasn't able to get it
> > working with sip4. The inheritance structure for this class
> > is ambiguous. sip3 required patching of the sip generated
> > code, but I didn't find an easy way to do that with sip4
> > (the code is quite different). I might do some more work on
> > this, but it has a low priority (unless someone really needs
> > KSharedPixmap).
> >
> > I finally remembered to fix DCOPClient. DCOPClient.call,
> > DCOPClient.callAsync (>= KDE3.2.0), and one or two other
> > methods should now work correctly. For example, in C++
> > DCOPClient.call returns results through references in the
> > arg list; in Python it takes a shorter arg list and returns
> > a tuple (see the docs for specifics). I want to look into
> > DCOP more and provide some example code. Marshalling args
> > seems to be the tricky part.
> >
> > kjs is optional (by default not built); kmdi is added
> > (>=KDE3.2.0)
> >
> > The docs begin in the doc/ subdirectory and are only in
> > HTML. The classref docs no longer link to KDE docs. There is
> > no longer a separate viewer. I just noticed I forgot to
> > include images with the docs - I'll add those for the final
> > release.
> >
> > QXEmbed is included again - there's an example program from
> > Troy Melhase in examples/, along with a kmdi example from
> > him as well (thanks!).
> >
> > Except for undiscovered bugs, I consider this release to be
> > complete - it's feature complete anyway. Compiling against
> > sip4 throws a lot of warnings - I don't believe any of those
> > are a problem, but will try to eliminate as many as possible
> > (some of the unused or uninitialized variable stuff may
> > persist).
> >
> > I'd appreciate hearing whether it works or not with
> > platforms I haven't tested - Mdk 10, SuSE 9.1, Debian,
> > Gentoo, Slackware, etc.
> >
> > Jim
> >
> > _______________________________________________
> > PyKDE mailing list PyKDE at mats.imk.fraunhofer.de
> > http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
More information about the PyQt
mailing list