473,287 Members | 1,463 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,287 software developers and data experts.

Generating event from event

I have script which being triggered by pressing CTRL+Right mouse click
from any place in my O.P , Now I need to generate automatically event
like copy my selected item or double clicking the right mouse cursor
without user interfering.
how can i implement this width python?
thanks!
Jun 27 '08 #1
6 966
Gandalf wrote:
I have script which being triggered by pressing CTRL+Right mouse click
from any place in my O.P , Now I need to generate automatically event
like copy my selected item or double clicking the right mouse cursor
without user interfering.
how can i implement this width python?
thanks!
You didn't tell us enough to answer your question. What GUI are you
using? Nearly every one of them that I'm aware of allow you to register
handlers for such events.

-Larry
Jun 27 '08 #2
On May 30, 3:43 pm, Larry Bates <larry.ba...@websafe.com`wrote:
Gandalf wrote:
I have script which being triggered by pressing CTRL+Right mouse click
from any place in my O.P , Now I need to generate automatically event
like copy my selected item or double clicking the right mouse cursor
without user interfering.
how can i implement this width python?
thanks!

You didn't tell us enough to answer your question. What GUI are you
using? Nearly every one of them that I'm aware of allow you to register
handlers for such events.

-Larry
windows xp
Jun 27 '08 #3
Gandalf schrieb:
On May 30, 3:43 pm, Larry Bates <larry.ba...@websafe.com`wrote:
>Gandalf wrote:
>>I have script which being triggered by pressing CTRL+Right mouse click
from any place in my O.P , Now I need to generate automatically event
like copy my selected item or double clicking the right mouse cursor
without user interfering.
how can i implement this width python?
thanks!
You didn't tell us enough to answer your question. What GUI are you
using? Nearly every one of them that I'm aware of allow you to register
handlers for such events.

-Larry
windows xp
Oh please. You have been around here & asking enough questions to
finally notice that more information is needed - actually, you have been
providing this at other times. What GUI-Toolkit are you using, on which OS?

Yes, I now *know* that it is WX - because I searched the archives. But
that is not the thing here - provide enough information yourself.

Diez
Jun 27 '08 #4
Hi Diez, I can't see how it matter which GUI-Toolkit i uses because I
can combine libraries.
I think all that matter is that i work with windows XP.

if you ever done something like that or you familiar with article
which can show me how to implement what I asked it would help me

Thank you very much
Jun 27 '08 #5
On May 30, 12:11*pm, Gandalf <goldn...@gmail.comwrote:
Hi Diez, I can't see how it *matter which GUI-Toolkit i uses because I
can combine libraries.
I think all that matter is that i work with windows XP.

if you ever done something like that or you familiar with article
which can show me how to implement what I asked it would help me

Thank you very much
It matters because each Python GUI toolkit works differently. Tkinter
does it via Tk/tcl calls, wxPython uses the wx library and pyGTK does
it in yet another way. The basic ideas are the same, but the
implementations are quite different.

In wx, for example, there are mouse events called wx.MouseEvent:

http://www.wxpython.org/docs/api/wx....ent-class.html

In Tkinter, they do the same thing, but the calls are almost
completely different. See the following for examples:

http://www.pythonware.com/library/tk...d-bindings.htm

You probably either want the MouseEvents or to create an
AcceleratorTable.

Mike
Jun 27 '08 #6
Lie
On May 31, 1:27*am, Mike Driscoll <kyoso...@gmail.comwrote:
On May 30, 12:11*pm, Gandalf <goldn...@gmail.comwrote:
Hi Diez, I can't see how it *matter which GUI-Toolkit i uses because I
can combine libraries.
I think all that matter is that i work with windows XP.
if you ever done something like that or you familiar with article
which can show me how to implement what I asked it would help me
Thank you very much

It matters because each Python GUI toolkit works differently. Tkinter
does it via Tk/tcl calls, wxPython uses the wx library and pyGTK does
it in yet another way. The basic ideas are the same, but the
implementations are quite different.

In wx, for example, there are mouse events called wx.MouseEvent:

http://www.wxpython.org/docs/api/wx....ent-class.html

In Tkinter, they do the same thing, but the calls are almost
completely different. See the following for examples:

http://www.pythonware.com/library/tk...events-and-bin...

You probably either want the MouseEvents or to create an
AcceleratorTable.

Mike
I'd get frustated enough to *plonk* someone like him if he keeps
refusing to answer an information that is already requested and
already mentioned of the significance.
Jun 27 '08 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: flupke | last post by:
Hi, i create my GUIs mainly via wxGlade. However when you start of to program and want to do some rearranging to the gui, wxglade overwrites your file and you've got to put your own code back...
2
by: Liz - Newbie | last post by:
I need to generate an event in a user defined control when I have changed a variable, so that I can pick it up in my main form and take it from there. Can someone explain the SIMPLEST way of...
18
by: Elder Hyde | last post by:
Hey all, A class of mine needs to tell the outside world when its buffer is not empty. The problem is that C# seems to force you to put the event-raising code in the base class. To illustrate,...
4
by: Lee Chapman | last post by:
Hi, I am having difficulty getting the ASP.NET framework to generate valid XHTML. My immediate problem surrounds user input in, for example, textbox controls. I consider characters such as...
4
by: Bill J | last post by:
Hi Everyone, Is there a way of generating a keyboard character event and sending it to a control on a form? For example, if I have a menu item called "Delete", I would like to send a DEL...
7
by: timasmith | last post by:
Hi, I have this app which is relatively database independent. I would like to serve the smallest scale (MS Access) up to the largest database server (Oracle). I recoginize that I will need...
2
by: Gary Brown | last post by:
Hi, I dynamically connect a MDI parent's toolstrip button to a child event handler by calling the following member at the child's Activated and Deactivate events. It looks simple enough but...
0
by: krish | last post by:
hi, I am dynamically generating Imagebutton (say 5 imagebutton, in loop) . for each imagebutton url , i am dynamically generating image and assigining to it. every thing is ok upto this...
3
by: deciacco | last post by:
I'm trying to write a label printing SDI app with a small preview on the main form itself. Every time I run the InvalidatePreview event on the preview control to redraw the preview I get the...
5
by: dwmartin18 | last post by:
Hello everyone. I have quite the puzzling problem with a script I have been working on lately. I have created a function that can be called to create a new html element (e.g. input, select, div,...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.