def ignore(self, event):
<EOL>if not self.active:<EOL><INDENT>return True<EOL><DEDENT>if not self.canvas.widgetlock.available(self):<EOL><INDENT>return True<EOL><DEDENT>if self.eventpress == None:<EOL><INDENT>return event.inaxes!= self.ax<EOL><DEDENT>return  (event.inaxes!=self.ax or<EOL>event.button != self.eventpress.button)<EOL>
return True if event should be ignored