470,821 Members | 1,962 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,821 developers. It's quick & easy.

Python Filemanager and Shell Context Menu

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
2 2945
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
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.

Similar topics

4 posts views Thread by Logan | last post: by
4 posts views Thread by yxq | last post: by
1 post views Thread by Luhar | last post: by
2 posts views Thread by elziko | last post: by
reply views Thread by lushdog | last post: by
4 posts views Thread by emin.shopper | last post: by
3 posts views Thread by Poggs | last post: by
5 posts views Thread by AGP | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.