Using Python to add thumbnails to Explorer
rupole at hotmail.com
Thu Oct 27 02:32:09 CEST 2005
Sorry, I didn't realize you meant per-file.
However, Pythoncom supports both the interfaces
(IExtractIcon and IPersistFile) specified on the page
you referenced, so you ought to be able to implement
an icon handler with the Pywin32 extensions.
"c d saunter" <christopher.saunter at durham.ac.uk> wrote in message news:djoqn3$s0d$1 at heffalump.dur.ac.uk...
> Hi Roger,
> Thanks for the info - I was actually interested in custom
> per file thumbnails rather than icons, but your message sentt me
> pouring through seemingly relevent parts of the registry - however
> what I need isn't there.
> Turns out I need to use a .dll shell extension as per
> Not so simple, and not (directly) a job for Python.
> Roger Upole (rupole at hotmail.com) wrote:
> : As you guessed, the icon locations are stored in the registry.
> : There's a key under HKEY_CLASSES_ROOT for each
> : registered file type, with a default value holding the class name.
> : Under the class name, there's a DefaultIcon key that gives
> : the path to the icon. Using python files an an example, you
> : have HKCR\.py with Default=Python.File, and under
> : HKCR\Python.File\DefaultIcon, you should have the
> : path to py.ico. You can use the _winreg module to create
> : your own entries.
> : hth
> : Roger
----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= East/West-Coast Server Farms - Total Privacy via Encryption =---
More information about the Python-list