Blender UI mouse click alteration help

Hi I wish to modify the blender-python default mouse click event in view3d space. Can anyone guide me.

On selecting an object in view3d space with mouse click, the parent should get selected automatically (bpy.ops.object.select_grouped(type = “Parent”))

Thanks in advance

You could register a custom operator and change the keybinding for select mouse button. That operator would need to pass through the original event and also select the parent (either via RNA or via operator).

Thanks a lot!!!, will give it a try and post the results.

Thanks a lot!!! Willl give it a try, and post the results once i get it. But i am not too clear on the “RNA” so will try it via operator

Thanks!!! Will give it a try and let you know