From pykde Thu Apr 28 06:36:23 2005 From: Simon Edwards Date: Thu, 28 Apr 2005 06:36:23 +0000 To: pykde Subject: Re: [PyKDE] KDE app template: Qt signal problem... Message-Id: <200504280836.23638.simon () simonzone ! com> X-MARC-Message: https://marc.info/?l=pykde&m=111467055300195 On Tuesday 26 April 2005 23:15, Jim Bublitz wrote: > In testapp.py, KParts want to reside in a KParts.MainWindow, not a > KMainWindow. That means you'd need to provide an argument to createGUI as > well, which would be the part being displayed in the main window. > > Also, self._html is a KParts.ReadOnlyPart, which doesn't offer the signals > you're trying to connect to. You should be able specify the class type in the > createReadOnlyPart call (rather than using the default), or else try sip.cast > to cast it to the type that offers the signals you want (not sure what you're > going for here). I seem to have the signal problems sorted out. But nothing is displayed in the window (need KParts.MainWindow?), which doesn't make sense since the code is based on the C++ app generated by KDevelop. It works and doesn't use KParts.MainWindow. Using KHTMLPart directly works though. I updated the code at: http://www.simonzone.com/software/python/kdeapp.tar.bz2 Also, you can't do multiple inheritence with PyQt/PyKDE which makes it a bit hard to add the DCOP interface to testapp in the same way as in the C++ version. But I've got a cunning plan to fix that. ;) Thanks for your help Jim. cheers, -- Simon Edwards             | Guarddog Firewall simon@simonzone.com       | http://www.simonzone.com/software/ Nijmegen, The Netherlands | "ZooTV? You made the right choice." _______________________________________________ PyKDE mailing list PyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde