$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Thierry Lam (lam_at_[hidden])
Date: 2005-05-09 08:10:09
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.