pythonCOM with Flash

Bradley Schatz bradley at greystate.com
Fri Jun 13 04:01:39 EDT 2003


Hi Mark,

I found this post (below) by you. Is it still the case that you can only get
OCX events from within pythonwin? Can this not be done from a console app?
If not, how come?

Thanks,

Bradley






You can only get events from an OCX by using code from within Pythonwin.

You can subclass from the generated code.

You should check out the Pythonwin demos.  Depending on the version you
have, these will be either in "pywin\Demos" or "pywin\Demos\ocx".  You
should look for "ocxserialtest.py", "ocxtest.py", "webbrowser.py" and a
later one "msoffice.py"

Mark.



"Mark Hammond" <mhammond at skippinet.com.au> wrote in message
news:GV%Fa.2949$GU5.41737 at news-server.bigpond.net.au...
> Bradley Schatz wrote:
> > Hi,
> >
> > I am attempting to use Flash as a UI for a python program. I have
> > successfully prototyped this using VB/Flash, and am not trying to
convert it
> > over to work with python.
> >
> > My problem is this, when I run the following code (attached below)
nothing
> > happens.
> >
> > I assume that the Flash activex component needs to be placed in some
> > container to be seen, as I am not seeing any window come up when I run
this.
> >
> > Could anyone suggest how to embed this into a container?
>
> Look at the Pythonwin OCS demos, under the pywin\demos directory.
> wxPython also has some ActiveX container support, but I have never used
it.
>
> Mark.
>






More information about the Python-list mailing list