Click event with python

2007-02-13 Thread Otacon22
I am creating an alternative mouse device(like wiimote), i use Xlib to move mouse, but now I need also to create the right and left click event, I can use already Xlib or there is another library that make it? It is possibile beacuse the wiimote code click also(I tryed to understand that code but

Re: click event

2005-11-06 Thread jmdeschamps
I guess you mean draw lines from the laast coordinates to the new one? then add a few global variables: lastX="" lastY="" # and modify lastX="" lastY="" def click(event): global lastX, lastY if lastX != "": c.create_line(lastX,last

click event

2005-11-06 Thread Shi Mu
I have the following workable code and every time i click on the canvas, the coordinates are reported. i wonder how i can draw the lines when i click the canvas using these coordinates? from Tkinter import * root = Tk() c = Canvas(root, bg='#0e2e0e', height=500, width=1000) def c

generating a click event without actually clicking the button

2005-11-04 Thread Swarna Pulavarty
Hi all,   I need to retreive data from a website. For this, the user needs to click a button to get the actual data.   How can i do this programatically in python, wihtout any user involvement, generating a button click event and retreiving the data.   Any help is appreciated ! Swarna