Thanks for the suggestions. I am debating which of the feasible methods will be easier.

The javascript code calling a COM object was quite easy to get working:
var obj = ActiveXObject(aa.bb);

However it doesn't work with mozilla (which I expected). When loaded as HTML it gives a warning every time. Even when you run it as HTA, it generates a warning on the first run, but not after. The HTA option looks neat for a windows application (thanks Michel). For deployment I guess you would go something like this: pack an HTA file with your python com server exe. Write a bat file that to runs the application you are writing so that it can register with the local registry. Then open explorer passing it the HTA file.

The option of running a web server locally whenever this application is fired can be used in lieu of running a com server and using HTA.

The reason why the web server option looks attractive is becuasebecause it has object publishing that comes for free, with something like Cherry Pie. Without this, I would have to write some messy html scripting code that will intercept actions on the HTML/HTA file and then return with other HTML/HTA pages etc.

I guess the happy middle would be to find a object publishing framework that generates HTML but runs inside a python COM server. Is there any? If not I guess one can try change cherry py a little bit so it can act as a com server instead of a webserver.

-- Roop

On Tue, 7 Jun 2005, Michel Claveau wrote:

Bonsoir !


Je fais exactement ce que vous espérez : IE comme frontal d'un logiciel en Python. Au départ, j'utilise un fichier .HTA, qui se connecte à Python avec Javascript :
      var comlink = new ActiveXObject("Soft.Python");
Entre les objets de l'interface, et le logiciel Python, j'ai établit plusieurs dizaines de liens COM. Les évènements sont interceptés par javascript, et transmis au logiciel Python.
De la même manière, les activeX peuvent être téléguidés par Python.

A partir de ça, je suis allé plus loin. Mais cela est difficile à expliquer avec un simple message...

@-salutations

Michel Claveau
mél : http://cerbermail.com/?6J1TthIa8B



***** Translation with Babelfish ***** :


Good evening!

I do exactly what you hope for: IE like frontal of a software in Python.
At the beginning, I use a file HTA, which is connected to Python with Javascript:
      var comlink = new ActiveXObject("Soft.Python");
Between the objects of the interface, and the software Python, I have establishes several tens of bonds COM. The events are intercepted by Javascript, and transmitted to the Python software.
Same manner, the activeX can be radio-controlled by Python.

From that, I went further. But that is difficult to explain with a simple
message...



_______________________________________________
Python-win32 mailing list
Python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to