Re: Calling Python-tk code from C/C++

2009-01-27 Thread Rajorshi Biswas
Thanks David. I found some help in this thread :http://mail.python.org/pipermail/cplusplussig/2006September/010814.htmlI am trying to adapt the same over for our requirements looks like we need new Python interpreters to handle the Tk UI loop. We will post back if we are able to make it work.

C-Python API problem

2009-01-27 Thread Rajorshi Biswas
Hi, I was trying out the sample program to load a python script from C in the Python tutorial at http://docs.python.org/extending/embedding.html (Section: Pure Embedding).Usage: call pythonfile funcname [args] When running this script, I can run things like the following:call mytest foobut not a

Calling Python-tk code from C/C++

2009-01-27 Thread Rajorshi Biswas
Hello all, This is my first post to this mailing list. Our requirement is to invoke a Tkinter python panel from a C++ GUI app where both GUI windows would run in 2 separate threads. We have written a sample PyQt application which calls this Tk panel using something like this:class TkPanel(threa