RE: [python-win32] COM access to Excel suddenly stopped working

2005-04-20 Thread sjmachin
On 19 Apr 2005 at 14:52, Mark Hammond wrote: > Hi John, > > > (1) xl = win32com.client.Dispatch("Excel.Application") > > (2) print repr(xl) > > (3) xlwb = xl.Workbooks.Open(filename) > > > > Before, line 2 would print this: > > > Library._Application instance at > > 0x39073872> > > and line 3 wo

RE: [python-win32] Can't catch WM_CREATE

2005-04-20 Thread Mark Hammond
> i can't seem to catch a WM_CREATE message in simple code. > i expect my code to print 'create', but it doesn't The problem is the way win32gui works. win32gui sub-classes the created window *after* the call to CreateWindow returns - however, WM_CREATE is sent *before* CreateWindow returns. It

[python-win32] Re: Windows Namespace Extensions

2005-04-20 Thread Roger Upole
Hello, I'm not a newbie to Python but to all the system-level programming for windows in any language. Is it possible to write windows namespace extensions using Python including writing a new view in the explorer for the namespace using win32ui. If so has anyone done that already and can share

RE: [python-win32] Windows Namespace Extensions

2005-04-20 Thread Mark Hammond
> Is it possible to write windows namespace extensions using Python > including writing a new view in the explorer for the namespace using > win32ui. If so has anyone done that already and can share some tips? It is and it works very nicely :) See the win32comext\shell\demos directory for some st

[python-win32] Windows Namespace Extensions

2005-04-20 Thread Stephan Smola
Hello, I'm not a newbie to Python but to all the system-level programming for windows in any language. Is it possible to write windows namespace extensions using Python including writing a new view in the explorer for the namespace using win32ui. If so has anyone done that already and can share

[python-win32] Can't catch WM_CREATE

2005-04-20 Thread Jack Andrews
hi, i can't seem to catch a WM_CREATE message in simple code. i expect my code to print 'create', but it doesn't listing follows. tia, jack from win32api import * from win32gui import * from win32con import * wc = WNDCLASS() hi = wc.hInstance = GetModuleHandle(None) wc.lpsz