msherman77 at yahoo.com
Wed Oct 25 13:14:54 CEST 2006
I think I'll try calling my module from a separate
thread as calling wxPython or even Python code from C
would be a bit complicated. My extension calls simple
<stdio.h> functions, but the issue was that the files
I operate on are huge in size and Python was taking a
long time and/or choking.
--- Gabriel Genellina <gagsl-py at yahoo.com.ar> wrote:
> At Tuesday 24/10/2006 23:25, Michael S wrote:
> >I extended part of my program in C, since that part
> >was too involved for Python. Now when I import the
> >module I created and call its functions, I am
> >to feedback some information bac to my wxPython
> >program. The function runs for a while and I wanted
> >update a progress bar, but when I call the function
> >my new module, wxPython doesn't respond when
> >is supposed to fire.
> Does your extension run on a separate thread? I
> guess not. So the
> wxPython code does not have a chance to run.
> Do it the other way: from your C code, call a Python
> function which
> in turn updates the progress bar (and keep it
> Gabriel Genellina
> Softlab SRL
> Correo Yahoo!
> Espacio para todos tus mensajes, antivirus y
> antispam ï¿½gratis!
> ï¿½Abrï¿½ tu cuenta ya! - http://correo.yahoo.com.ar
More information about the Python-list