def move(event): position = (event.x, event.y) event.widget.coords(viewportlabel, position) viewportlabel.bind('<Button-1>', move)
def move(event):
position = (event.x, event.y)
event.widget.coords(viewportlabel, position)
viewportlabel.bind('<Button-1>', move)