473,806 Members | 2,739 Online
Bytes | Software Development & Data Engineering Community
+ 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 3137
Francesco <sc*********@gm x.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*********@gm x.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
3853
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 less - during my own installation of Python 2.3 on Fedora Core 1 Linux for a friend of mine). Anyway, HTH, L.
4
2961
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
2723
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
1267
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 that pops up. Any suggestions? Thanks,
2
1534
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 clicked on. However, if I select multiple file names then the executable given in the default value is called multiple times. Is there an option other than %1 which will send all the filenames to the executable in one command line? Thanks!
0
4095
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. Here is the problem. If i select one file and use the standard OPEN context menu, for a .txt file let's say, all is well, but if i select two or more files and use the standard OPEN context menu it seems to want to run through the code snippet for...
4
3203
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: ---------------------------------------------------------- Microsoft Windows XP (C) Copyright 1985-2001 Microsoft Corp.
3
5053
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 functionalities cannot work together. void IContextMenu.InvokeCommand (IntPtr pici) I put more debugging information and I noticed that the two assemblies are using a common value. I haved changed their namespaces and guids to be different but...
5
2906
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 icon and "Open with MyCooolApp". Are there any recommendations for a shell extension code base? I am trying to look for one that is easily changed and compiled and will run as a unique extension to my app. Rgds AGP
0
9598
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10623
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10371
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10373
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10111
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9192
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7650
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5683
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4330
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 we have to send another system

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.