No busques más por otros sitios porque has llegado al sitio indicado, contamos con la solución que quieres hallar y sin complicarte.
Ejemplo: b1-motion tkinter
Tkinter provides a mechanism to let the programmer deal with events. For each widget, it's possible to bind Python functions and methods to an event.
widget.bind(event, handler)
If the defined event occurs in the widget, the "handler" function is called with an event object.
<motion> : The mouse is moved with a mouse button being held down. To specify the left, middle or right mouse button use <B1-Motion>, <B2-Motion> and <B3-Motion> respectively. The current position of the mouse pointer is provided in the x and y members of the event object passed to the callback, i.e. event.x, event.y
Acuérdate de que tienes la capacidad de glosar tu experiencia si te fue preciso.
¡Haz clic para puntuar esta entrada!
(Votos: 0 Promedio: 0)