send event from extension?

Roger Upole rupole at hotmail.com
Thu May 27 20:15:23 EDT 2004


You could use win32event.CreateEvent and pass the handle into your
extension,
call SetEvent in the c code, and use win32event.WaitForSingleObject to wait
for
the signal.  Alternately, you could create a named event and call OpenEvent
to
get a handle instead of passing it around.
    hth
       Roger

"Markus von Ehr" <vonehr at ipm.fhg.de> wrote in message
news:c957po$qrd$1 at news2.rz.uni-karlsruhe.de...
> Hi everybody,
>
> I'd like to create an event which I have to post/set
> within an extension (new frame signal from a camera).
> In python I would like to react on this event.
> How could I create and post the event in c and
> how could I receive it in a python event handler
> routine done with the win32event module?
>
> Thanks for any answer,
>
> Markus





More information about the Python-list mailing list