[wxPython-users] report progress from C function
Michael S
msherman77 at yahoo.com
Wed Nov 1 06:12:34 PST 2006
Thanks.
Yes, I just saw in the documentation for parseTuple
that it was possible to push a pointer to a Python
object.
--- Phil Mayes <phil at philmayes.com> wrote:
> At 02:09 PM 10/31/2006, you wrote:
> >Good day all.
> >
> >I rewrote part of my program in C, it's a usually a
> >long task. I wanted to be able to report the
> progress
> >back to my python program. In my module (in
> addition
> >to the function that performs the above-mentioned
> >task) there is a function that returns the
> variable,
> >indicating the progress. However I am not sure how
> to
> >call it. Once I call the C function that does the
> work
> >(it's a while loop that takes minutes sometimes) I
> >can't call that progress function.
> >Any ideas?
> >
> >Thanks in advance,
> >Michael
>
>
> How about a Python function that is called from C
> and pushes the progress
> variable back into Python? Caveat: I haven't tried
> this myself.
>
> Phil
>
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> wxPython-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail:
> wxPython-users-help at lists.wxwidgets.org
>
>
More information about the wxpython-users
mailing list