Python Filemanager and Shell Context Menu

F

Francesco

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.
 
J

John J. Lee

Francesco said:
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
 
F

Francesco

Francesco said:
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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,781
Messages
2,569,619
Members
45,314
Latest member
HugoKeogh

Latest Threads

Top