Hello, I would like to be able to get information from a Tkinter canvas
object. (color, width, tags, root points, etc),
I wrote the following function that, with a canvas bind, returns me the
widget that has been clicked on, the widget is returned as a tuple by the
find_overlapping method.
# detecting click
def Hasclicked(e):
global obj
global lastClick
lastClick = [e.x, e.y]
obj = e.widget.find_overlapping(e.x, e.y, e.x, e.y)
So, there's any method I can use on 'obj' to get the attributes?
(Tkinter Documentation: http://www.tkdocs.com/tutorial/index.html)
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor