By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,548 Members | 1,396 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,548 IT Pros & Developers. It's quick & easy.

Python Filemanager and Shell Context Menu

P: n/a
Hello Pythonnian's

(sorry for crossposting)

I have written on the base of Miro Rajic a (still) small filemanager
in wxPython.
Now I want to add (for Windows XP) a explorer shell context menu.

I have no idea, how to accomplish this.
For what I can imagine:
Either use ctypes and the kernel or shell dll, or win32 extensions.

Have someone done such a task before?
Can someone help me?

Who has interesest and want to join in my project "wxPyAtol"?

particulary for the next time:

- Testing
- support for linux
- maybe restructure the program. (it is not very pyhton like)
- drag and drop support
- leap to wxPython 2.5

latest sources:
http://berg.heim.at/anden/421194/wxpyatol.zip

SF Site:
https://sourceforge.net/projects/wxpyatol/

My Homepage:
http://my.heim.at/franciss/

Sorry for my english and thank you in advance.

--
Francesco
Jul 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Francesco <sc*********@gmx.at> writes:
Hello Pythonnian's

(sorry for crossposting)

I have written on the base of Miro Rajic a (still) small filemanager
in wxPython.
Now I want to add (for Windows XP) a explorer shell context menu.

I have no idea, how to accomplish this.
For what I can imagine:
Either use ctypes and the kernel or shell dll, or win32 extensions.

Have someone done such a task before?
Can someone help me?

[...]

There's a good O'Reilly book about this, which certainly covers what
you want:

"Visual Basic Shell Programming", J.P. Hamilton
I used that book to write a trivial IE plugin that I posted to the
ctypes mailing list -- not directly relevant, but may set you on the
right track (it shows how to implement COM interfaces that aren't
defined in any type library).

Generally, for all this Windows shell programming, you implement some
COM interfaces, and then set up set up some registry keys to tell
Windows what you've done. The book tells you which interfaces and
which keys you need, documents some bugs and oddities and gives some
example code. You just have to translate the VB code to Python+ctypes
(which is not necessarily an entirely hitch-free process ;-).
Obviously, there's no Python-specific info in the book.
John
Jul 18 '05 #2

P: n/a
On 06 Apr 2004 23:29:19 +0100, jj*@pobox.com (John J. Lee) wrote:
Francesco <sc*********@gmx.at> writes:
Hello Pythonnian's
[...]
I have no idea, how to accomplish this.
For what I can imagine:
Either use ctypes and the kernel or shell dll, or win32 extensions.

Have someone done such a task before?
Can someone help me?

[...]

Hello John,
There's a good O'Reilly book about this, which certainly covers what
you want:

"Visual Basic Shell Programming", J.P. Hamilton
I used that book to write a trivial IE plugin that I posted to the
ctypes mailing list -- not directly relevant, but may set you on the
right track (it shows how to implement COM interfaces that aren't
defined in any type library).
interesting, I will take a look.

Generally, for all this Windows shell programming, you implement some
COM interfaces, and then set up set up some registry keys to tell
Windows what you've done. The book tells you which interfaces and
which keys you need, documents some bugs and oddities and gives some
example code. You just have to translate the VB code to Python+ctypes
(which is not necessarily an entirely hitch-free process ;-).
Obviously, there's no Python-specific info in the book.


thank you for your explanation.

best regards,
--
Francesco
Jul 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.