views:

24

answers:

1

Hello,

I'm try to embed a IExplorerBrowser (Windows Explorer) in a wxpython application but I cannot seem to get the IExplorerBrowser module opened in python

I have the CLSID of IExplorerBrowser from the registry but when I try and open it with:

from win32com import client

client.gencache.GetModuleForCLSID(id)

Nothing is returned.. i.e. the module does not exist.

Am I going about this the wrong way? I usually use makepy to generate COM wrappers and open them with client.Dispatch, getting the object names from the makepy generated code. However, I can not find the IExplorerBrowser object in the makepy COM browser and am pretty much stuck.

Thanks

+1  A: 

Most of the windows shell interfaces can be accessed from win32com.shell. Also take a look at the sample explorer_browser.py, which should be in your site-packages/win32comext/shell/demos directory.

ars
Ahh thank you! The demo works but unfortunately I cannot seem to embed the ExplorerBrowser in a wx window. I cannot use MakeActiveXClass on the PyExplorerBrowser object returned from CoCreateInstance. I am looking into ways to embed the win32gui stuff into a wx window.
pisswillis
Hmm, sorry, not sure how to embed since I've never tried that. Maybe you can try asking on the wxPython users list: http://groups.google.com/group/wxpython-users/topics
ars