
9 May
2005
9 May
'05
1:10 p.m.
Let's say I have the following in a Python file called progress.py: pbar = gtk.ProgressBar() def updateBar(): pbar.puls() In C++: for ( int i = 0; i < 10; i++ ) // Call the python method updateBar() which is not a member of any class in progress.py How do I do it? I'm aware of the following 2 functions in boost: call<ResultType>(callable_object, a1, a2... aN); call_method<ResultType>(self_object, "method-name", a1, a2... aN); Can I see an example on how to use them? My goal is to display the progress bar widget live while the for loop is counting from 0 to 9.