#NEWLINE# def pick( self , x , y ) : #NEWLINE# #INDENT# "Calls one of the current pickers and then passes the\n        obtained data to the `self.pick_handler` object's\n        `handle_pick` method.\n\n        Parameters\n        ----------\n\n        - x : X position of the mouse in the window.\n\n        - y : Y position of the mouse in the window.\n\n          Note that the origin of x, y must be at the left bottom\n          corner of the window.  Thus, for most GUI toolkits, y must\n          be flipped appropriately such that y=0 is the bottom of the\n          window.\n        " #NEWLINE# data = None #NEWLINE# if ( self . pick_type_ == 1 ) : #NEWLINE# #INDENT# data = self . pick_point ( x , y ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . pick_type_ == 2 ) : #NEWLINE# #INDENT# data = self . pick_cell ( x , self ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . pick_type_ == 3 ) : #NEWLINE# #INDENT# data = self . pick_world ( x , y ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# self . pick_handler . handle_pick ( data ) #NEWLINE# if self . show_gui : #NEWLINE# #INDENT# self . _setup_gui ( )