'whenever a mouse button is pressed'

def button_press_callback(self, event):

    if (not self.showverts):
        return
    if (event.inaxes is None):
        return
    if (event.button != 1):
        return
    self._ind = self.get_ind_under_point(event)
