[PyKDE] Re: RE: QAxWidget
mike.thompson at day8.com.au
Sat Mar 6 13:13:00 GMT 2004
"Phil Thompson" wrote:
> On Thursday 04 March 2004 22:57, Mike Thompson wrote:
> > I need to include an ActiveX component in a PyQt program but PyQt does not
> > currently wrap QAxWidget.
> > On another tack, would it be a difficult job to SIP Qt's AxWidget class to
> > something embedable and pythonic? Or so put that another way: has the
> > wrapping of AxWidget not been done because its problematic or because its
> > JUST bloody windows related. :-) (I would have a look myself, only I
> > don't have any source because I'm evaluating PyQt using only the BlackAdder
> > demo and a AxWidget-less installation on a RedHat box.)
> Are you able to say what the minimum set of classes and methods you would
> One reason it hasn't been done before is that I'm not sure everything can be
> wrapped, but I don't know what a useful minimum would be.
I will need my (PyQt) user interface to "contain" ActiveX objects. See:
http://doc.trolltech.com/3.3/qaxcontainer-example-webbrowser.html for the C++
equivalent. There is a sister example at:
http://doc.trolltech.com/3.3/qaxcontainer-example-qutlook.html where the
ActiveX object doesn't seem to have a part of the GUI (which is not quite what
I guess that'll mean wrapping some Q* classes. It might also mean additions to
pyuic because Designer seems to allow for the properties of an ActiveX
component to be editted. (I think. Based on some work with BlackAdder demo
I'm afraid I can't be more specific than that. I have source for neither Qt or
PyQt, I'm still evaluating from the outside.
I don't immediately need the ActiveX Server stuff because I can achieve that
through win32com, I believe. Although how the two event loops would interact I
don't know. Anyway, as I said, that's a 2nd-ary issue right now.
More information about the PyQt