[PyQt] PyKDE: problems sending singals to KPART

Marcos Dione mdione at grulic.org.ar
Sat Jun 7 17:53:00 BST 2008


On Wed, Jun 04, 2008 at 02:36:37PM +0200, Thomas Winkler wrote:
> 		self.part.openURL(KURL('file:///home/tom/test.pdf'))
> 		self.connect(self, PYSIGNAL("sigNextSlide"), self.part, 
> SLOT("slotNextSlide()"))
> 		self.emit(PYSIGNAL("sigNextSlide"), ())

    in the case of the KHTMLPart, the signals are not in the part
itself, but in a inner ojject, so you end up doing:

            QObject.connect (part, SIGNAL ("completed()"), func)
            if type(part)==KHTMLPart:
                QObject.connect (part.browserExtension(),
                    SIGNAL ("openURLRequest (const KURL &, const KParts::URLArgs &)"),
                    self.linkClicked)

    see? maybe the kpdf one behaves similarly...

-- 
(Not so) Random fortune:
Getting in trouble is interesting. Getting out is educational.
            -- Roberto Alsina


More information about the PyQt mailing list