Double-click on object invoking python script command?

Hi,

Assume we have a command (myBox.py) e.g. myBox(height,width,depth) to create a box.

How can I invoke this command, to edit the box, by double clicking on the box?

Thanks in advance

hello @ivelin.peychev

very late reply. but i had exactly the same problem.
I solved it in C# though (sorry, but if it helps)