473,398 Members | 2,335 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,398 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 970
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,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
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,...

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.