By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,100 Members | 2,846 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,100 IT Pros & Developers. It's quick & easy.

Generating event from event

P: n/a
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
Share this Question
Share on Google+
6 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.