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
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
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
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