I am really new to Python and found this snippet on the Internet that I changed, right now I have print x * y, but I want to be able to return it as an int value, so I can use it later in the script.
I am using Python 2.7.6.
def show_xy(event):
xm, ym = event.x, event.y
x3 = xm * ym
print x3
root = tk.Tk()
frame = tk.Frame(root, bg = 'yellow',
width = 300, height = 200)
frame.bind("<Motion>", showxy)
frame.pack()
root.mainloop()
Regards, Postie
Pstie source
share