From pykde Tue Oct 10 16:33:43 2006 From: "Phil Thompson" Date: Tue, 10 Oct 2006 16:33:43 +0000 To: pykde Subject: Re: [PyKDE] Building new Qt4 extension with sipdistutils Message-Id: <34473.195.6.25.120.1160498023.squirrel () river-bank ! demon ! co ! uk> X-MARC-Message: https://marc.info/?l=pykde&m=116049873612556 > On Tuesday 10 October 2006 03:00, Phil Thompson wrote: >> > On Tuesday 10 October 2006 2:59 am, Phil Thompson wrote: >> >> > There's a post about PyQt4 with Qt 4.2 that mentions "missing >> classes >> >> >> >> and >> >> >> >> > missing methods". Am I understanding it correctly then that the >> next >> >> > version >> >> > of PyQt4 will have this stuff? >> >> >> >> I meant the new Qt 4.2 functionality - but the Embed stuff seems >> fairly >> >> straight forward. Can you list the extra QWidget and QApplication >> >> methods >> >> you need so that I don't miss anything? >> > >> > Ok, thanks. :) I had written "this post can be disregarded if...", >> > which makes it hard to figure out if it got missed or whatever. I >> must >> > have been >> > smoking something that day... >> > >> > Anyway, here they are: >> > >> > From QApplication: >> > virtual bool x11EventFilter ( XEvent * event ) >> > int x11ProcessEvent ( XEvent * event ) >> > >> > From QWidget: >> > bool QWidget::x11Event ( XEvent * event ) [virtual protected] >> > >> > Note that last one is virtual protected, you should probably stick >> with >> > whatever your policy on protected methods is, even if it means leaving >> > that >> > one out. :) There's also a winEvent that windows users might want. >> > >> > I can actually live without those methods by using python-xlib, >> creating >> > a thread (so it has an event loop), creating a hidden window, >> registering >> > events with the x server and then emitting signals. There's at least >> an >> > even >> > chance that even if these methods are included, I'm going to need the >> > kind of >> > control that you only get using xlib directly. But I absolutely need >> the >> > Qx11Embed* widgets, um, both of them. >> >> You'll have to live without those methods as I'm not going to wrap the >> XEvent structure. So long as the classes are still useful... > > Just to clarify, are you going to add the QX11Embed widget stuff (I > presume > without the one protected method that takes an XEvent arg)? QX11EmbedContainer and QX11EmbedWidget. There aren't any *documented* methods that need XEvent as far as I can see. Phil _______________________________________________ PyKDE mailing list PyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde