Wow, what perfect timing. I was going to send a question in about this today too.
It would be really convenient if there were some way to get an integer (handle) for winId() on Windows as well. I'm starting to experiment with embedding ActiveX controls in qt windows and I am pretty sure an integer window handle is required to do so. -greg At 02:30 AM 5/1/2002, Phil Thompson wrote: >"Smith, Dave" wrote: > > > > Looks like QWidget.winId() is broken in at least PyQt 3.1. When I try > to use it I get: > > > > Python 2.2 (#28, Dec 21 2001, 12:21:22) [MSC 32 bit (Intel)] on win32 > > Type "help", "copyright", "credits" or "license" for more information. > > >>> from qt import * > > >>> qApp = QApplication([]) > > >>> button = QPushButton(None) > > >>> button.winId() > > <PyCObject object at 0x007E9DA0> > > >>> > > > > According to the PyQt documentation it is implemented. > > > > I was expecting an integer value to be returned, in Qt, WId > > is declared as 'typedef int WId;' in qwindowdefs.h. > >I think you are mis-reading qwindowdefs.h. It's an int like type on >everything except Windows. > >Phil > >_______________________________________________ >PyKDE mailing list [EMAIL PROTECTED] >http://mats.gmd.de/mailman/listinfo/pykde _______________________________________________ PyKDE mailing list [EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde
