Hi Galileo,

On Sun, Mar 10, 2013 at 07:37:48PM -0600, Galileo Teco Juárez wrote:
> similar to it
> i will create new python-idle , built with AWT-UNO in Python

Let's see if I get it: you want to develop a Python IDE in AWT-UNO,
Are you planning this as an extension that will be installed in
OpenOffice?

If you want to make an extension that opens a Python IDE written in UNO,
with its own window, its menubar and toolbars, etc., then using the low level
AWT menu/bar API is a bad idea (not only that the menubar actually
crashes, but this menubar won't be integrated with the rest of the
application framework); also, if you want toolbars and statusbar, they
can't be created with UNO.

The proper way of creating a top window with full integration (menubar,
toolbar, statusbar) where your component will be loaded, is defining
a new component type and a new module in the office. This is done in
part with configuration files, but also implementing several components.

The other way, is to simply do what the JavaScript and BeanShell
scripting framework do: they allow editing the scripts, but without
integrating with the rest of the application. I guess you could simple
run openoffice/basis4.0/program/python-core-2.7.3/lib/idlelib/idle.py
(not sure how portable is this, in Linux works at least). 


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina

Attachment: pgpGt019X3KmX.pgp
Description: PGP signature

Reply via email to