[python-win32] Re: shell_view.py problem

Roger Upole rwupole at msn.com
Sat Dec 2 16:51:41 CET 2006


Andrew Kirkpatrick wrote:
> Hello, I'm having a play with python on windows and installed pywin32 
> version 210 for python 2.5. There is a nifty example 
> C:\Python25\Lib\site-packages\win32comext\shell\demos\servers\shell_view.py 
> that creates a virtual folder under the desktop root in windows 
> explorer. When I run it, it registers a COM server to handle this 
> virtual folder, I can see the changes it makes to the registry and the 
> item appears in explorer. However clicking on this item does nothing, 
> focus returns immediately to the desktop root item. I've littered the 
> file with calls to a logging function but nothing ever gets written to 
> the log file. It seems to me that while it works to register itself,  it 
> then doesn't get called by windows to handle events from explorer.
> 
> If anyone can help with this issue I'd be most grateful.
> 
> Cheers,
> Andy Kirkpatrick

It doesn't support the default Open verb invoked by double-clicking.
Right click and select Explore, and it will show up as an expandable
item.  The Scintilla file view that should show up in explorer's right window
doesn't work at the moment, but I have some uncommitted changes
that allow it to work on XP.

          Roger



More information about the Python-win32 mailing list