473,466 Members | 1,412 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 3113
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Logan | last post by:
Several people asked me for the following HOWTO, so I decided to post it here (though it is still very 'alpha' and might contain many (?) mistakes; didn't test what I wrote, but wrote it - more or...
4
by: anton | last post by:
Hi, I am googeling some hours now ... still without result. So I have a question: Does somebody know a filemanager: - which looks like Norton Commander/7-Zip Filemanager
4
by: yxq | last post by:
Hello Can anyone tell me Context Menu shell extension? It is better that provide some samples or links. Thanks
1
by: Luhar | last post by:
Greetings, I'd like to write a shell extension so that a user can right-click on any file, regardless of its extension, and my extension will appear as one of the choices on the context menu...
2
by: elziko | last post by:
I understand how to edit the registry to add context menu items in windows for any file type. I know I can use %1 for the default value of the command key to signify the filename that has been...
0
by: lushdog | last post by:
Hi, i'm writing a shell extension in c# that will add two menu's to the right-click menu of explorer if any file is selected, i.e. it's registered in the * section of Classes in the registry. ...
4
by: emin.shopper | last post by:
Emacs seems to freeze when doing certain shell commands on Microsoft Windows. The following is a simple example with Xemacs: ---------------------------------------------------------- ...
3
by: Poggs | last post by:
Hi everyone, I used the pattern for Shell Extensions for Context menu from Dino Esposito's article. However I implemented it in more than one application and it seems that those two right click...
5
by: AGP | last post by:
I have been looking far and wide for an easy to implement shell extension. My needs are basic...for two file extensions .YYY and .ZZZ I would like the context menu in explorer to simply show my app...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.