[PyKDE] QWidget.winId() not working?
Smith, Dave
dts at iti-oh.com
Wed May 1 18:44:00 BST 2002
Phil,
This should work for my purpose, also, thanks!
Dave
-----Original Message-----
From: Phil Thompson [mailto:phil at river-bank.demon.co.uk]
Sent: Wednesday, May 01, 2002 12:33 PM
To: greg Landrum
Cc: PyQt/KDE Mailing List (E-mail)
Subject: Re: [PyKDE] QWidget.winId() not working?
greg Landrum wrote:
>
> At 07:04 AM 5/1/2002, Phil Thompson wrote:
> >greg Landrum wrote:
> > >
> > > 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.
> >
> >How will you pass the handle to the ActiveX control? Is there an ActiveX
> >Python module that takes a handle? If so, what Python type does it
> >expect?
>
> There's a module (and some sample code) distributed with wxPython that uses
> the Python win32 stuff to allow wxPython windows to embed ActiveX
> controls. My plan was to hack away using that as a starting point until I
> got something working.
>
> The call I need to pass the handle (hwnd) to is:
> http://aspn.activestate.com//ASPN/Reference/Products/ActivePython/PythonWin/win32ui__CreateWindowFromHandle_meth.html
Ok - it's easy enough to change it to be an int in v3.2.
Will this break anything for anyone?
Phil
_______________________________________________
PyKDE mailing list PyKDE at mats.gmd.de
http://mats.gmd.de/mailman/listinfo/pykde
More information about the PyQt
mailing list