[python-win32] Re: Excel corrupted display problem

2006-08-21 Thread Roger Upole
John Henry wrote: > Hi list, > > I have a Python script that pops up Excel, fill it, > and then continue. If the user clicks on my Python > side to close Excel (via a call to the Quit() > function), then I can reopen it later via another > dispatch call and so forth. > > However, if the user cl

[python-win32] attribut de classe

2006-08-21 Thread Michel Claveau
Hi! *sorry for my bad english* A COM server, in PyWin32, is a class. When this class has a "attribut de class" (sorry it's in french ; english = attr of class?) , and if this attr of class is also in the _public_attrs_ list, it is changed, like a attr of instance. If I open twice the COM serve

[python-win32] smart : __del__ replace atexit

2006-08-21 Thread Michel Claveau
Hi! A little stunt : in COM server (with pywin32), atexit is not interesting. Then, look, in the class-serverCOM, the method __del__(self): When you close the COM-server, or when you exit the application who called the COM-server, the method is called. And... "le tour est joué" (french se