def click_in_tools(self,x,y,button,mods): picking.start(x,y,1,1) self.parts["tools"].draw('PICK') objects = picking.end() if objects: minz,maxz,label = objects[0] self.pick(label)
def pick_at(self,x,y): """Pick topmost object at x,y""" picking.start(x,y,1,1) self.draw('PICK') objects = picking.end() if objects: minz,maxz,label = objects[0] self.pick(label)
def pick_at(self, x, y): """Pick topmost object at x,y""" picking.start(x, y, 1, 1) self.draw('PICK') objects = picking.end() if objects: minz, maxz, label = objects[0] if minz > 1.6: self.nothing_near() else: self.pick(label, x, y)
def pick_at(self,x,y): """Pick topmost object at x,y""" picking.start(x,y,1,1) self.draw('PICK') objects = picking.end() if objects: minz,maxz,label = objects[0] if minz > 1.6: self.nothing_near() else: self.pick(label,x,y)