def simulate_mouse_click(widget, x, y):
 widget.event_generate('<Enter>', x=0, y=0)
 widget.event_generate('<Motion>', x=x, y=y)
 widget.event_generate('<ButtonPress-1>', x=x, y=y)
 widget.event_generate('<ButtonRelease-1>', x=x, y=y)

def simulate_mouse_click ( widget , x , y ) : widget . event_generate ( '<Enter>' , x = 0 , y = 0 ) widget . event_generate ( '<Motion>' , x = x , y = y ) widget . event_generate ( '<ButtonPress-1>' , x = x , y = y ) widget . event_generate ( '<ButtonRelease-1>' , x = x , y = y )
generate proper events to click at the x .