[wxpython-users] About events

Mike Driscoll mike at pythonlibrary.org
Sat May 24 08:44:23 PDT 2008


�������������������������������� wrote:
>
> First I would have to say this library has been very helpful, and I 
> will certainly keep using it.  
>
> I work with the WX library on windows XP Operation system.
>
> Now I wont to create an application which ran at the background and
> wait till the user  double click on a text word  OF any other python
> or none python application which ran on the desktop, and when this
> event append I wont my application to pup up a translation of this
> word.
>
> I figured that I need to understand how can I select text 
> automatically and copy it to the clipboard for doing that
>
> If someone know how to do it, or know whether this WX library capable 
> of doing it (and if not which library can...) I would be very thankful
>
> Have a nice day
>
>  
>

Hi,

At best, you'll only be able to open your translation program from other 
wxPython programs that you have created. You'll have to create some kind 
of "selection" event handler to open your other application that shows 
the translation. Catching events in other programs is nigh impossible 
without extreme low-level coding. You might be able to get at some of 
that sort of thing if the application in questions uses COM (such as MS 
Office).

Other than that, I don't think it's really possible.

Mike


More information about the wxpython-users mailing list