how to bring up shell context menu with wxpython

Hi,

I have a listctrl with a list of filenames. Is there a
way to bring up the shell context menu for a file by
right-clicking a filename entry in the listctrl?

I installed the win32 libraries and looked around for
examples on how to do this but all I found was code
for adding entries to the context menu.
I'd just like to bring up the same context menu that
you get when you right click on a file in Windows
explorer.

The environment is Windows XP, wxpython 2.6.3.2, and
python 2.4.3

Thanks,

Jeremy

···

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

jeremy alexander wrote:

Hi,

I have a listctrl with a list of filenames. Is there a
way to bring up the shell context menu for a file by
right-clicking a filename entry in the listctrl?

I installed the win32 libraries and looked around for
examples on how to do this but all I found was code
for adding entries to the context menu. I'd just like to bring up the same context menu that
you get when you right click on a file in Windows
explorer.

I don't know anything about using it or if it is available in the PyWin32 extensions, but a msdn search turns up the SHCreateDefaultContextMenu API function.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!