def press(self, event):
if self.ignore(event): return<EOL>self.buttonDown = True<EOL>self.rect.set_visible(self.visible)<EOL>if self.direction == '<STR_LIT>':<EOL><INDENT>self.pressv = event.xdata<EOL><DEDENT>else:<EOL><INDENT>self.pressv = event.ydata<EOL><DEDENT>return False<EOL>
on button press event