Alle 15:23, mercoled� 3 dicembre 2003, Christian Robottom Reis ha scritto:
> On Wed, Dec 03, 2003 at 08:55:10AM +0000, Alessandro Bottoni wrote:
> > Most likely you know AutoCAD. Well, I have to write a program like
> > AutoCAD that should have:
> >
> > - a graphical area (created with PyGTK)
> > - a text-based command line
>
> Do you mean something like PythonCAD?
>
>     http://www.pythoncad.org/
>
>     http://www.pythoncad.org/screenshots.html
>
> Would probably be a good idea to join efforts with Art, who is probably
> away or would have written something on the topic by now :-)

Yes, I was thinking to PythonCAD. I'm playing with it and trying to understand 
if and how I can put my hands into its code. This "embedding python" topic 
came out talking with Aart (who is here and listening, of course) about the 
CLI interface and strongly stimulated my interest. 

It is an interesting topic for two reasons:
- it is not as clearly defined as it could seem. For example: it is a "Python 
interpreter embedded in a PyGTK application" or a "PyGTK-extended Python 
app"? Which conceptual model is better suited to this case? Depending on your 
approach, you will have to face different kinds of problems...
- this kind of "embedded engine" would be extremely useful in many other 
situations.

I realized that the available docu is not as useful as I expected because it 
focuses on Python/C interaction, that is different and more complicated than 
a Python/Python one. Strangely enough, I did not find any docu regarding a 
Python interpreted embedded into a Python (PyGTK or PyQt) application or 
about any way to communicate with the internal Python interpreter of these 
GUI managers. Maybe, it is a too simple problem to deserve some docu (Just 
use eval() and exec() in most cases, I suppose).

Anyway, I'm afraid I will not be able to contribute to Aart's code before 
having clearly understood the nature of this topic and written some 
experimental code.

CU
------------------------
Alessandro Bottoni
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to