# How to restore the mouse listener event

**URL:** <https://discourse.slicer.org/t/how-to-restore-the-mouse-listener-event/27850>\
**Category:** Support\
**Created:** [February 16, 2023, 6:47am UTC](https://discourse.slicer.org/t/how-to-restore-the-mouse-listener-event/27850 "2023-02-16T06:47:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![user\_ghost](https://avatars.discourse-cdn.com/v4/letter/u/ee7513/32.png) [@user\_ghost](https://discourse.slicer.org/u/user_ghost)\
**Post date:** [February 16, 2023, 6:47am UTC](https://discourse.slicer.org/t/how-to-restore-the-mouse-listener-event/27850/1 "2023-02-16T06:47:33Z")

</div>

Hello:  
every teachers, i uesd the code to define a new event about left mouse press event  
[image|690x282](https://discourse.slicer.org/uploads/short-url/xlgLIx2FVa3PMC0RP5I73aVOv8h.png)  
but how can i restore the default action  
this is my code  
def onStartMark(self):  
layoutManager = slicer.app.layoutManager()  
threeDWidget = layoutManager.threeDWidget(0)  
threeDView = threeDWidget.threeDView()  
self.interactor = threeDView.interactorStyle().GetInteractor()  
import copy  
self.interactor1 = self.interactor  
# self.defaultObserver = interactor.GetObserverMediator()  
self.interactor.RemoveObservers(‘LeftButtonPressEvent’)  
self.interactor.AddObserver(‘LeftButtonPressEvent’, self.onRightButtonPressed)  
pointPicker = vtk.vtkPointPicker()  
self.interactor.SetPicker(pointPicker)
