# Interactor issue

**URL:** https://discourse.slicer.org/t/interactor-issue/9492
**Category:** Support
**Created:** [December 14, 2019, 1:34am UTC](https://discourse.slicer.org/t/interactor-issue/9492 "2019-12-14T01:34:53Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![fraca](https://avatars.discourse-cdn.com/v4/letter/f/f19dbf/32.png) [@fraca](https://discourse.slicer.org/u/fraca)
#### Post date: [December 14, 2019, 1:34am UTC](https://discourse.slicer.org/t/interactor-issue/9492/1 "2019-12-14T01:34:53Z")

</div>

Hi, i’m trying to update this code (build for 3DSlicer 3.6) for 3DSlicer 4.10.2 but i have some issues with the interactor. I want to observe the “LeftButtonReleaseEvent” when i press only on the Red Slice Viewer (in 3DSlicer).

> self.RedSliceInteractor=slicer.ApplicationGUI.GetMainSliceGUI(“Red”).GetSliceViewer().GetRenderWidget().GetRenderWindowInteractor() self.RedSliceLeftButtonReleaseTag=self.RedSliceInteractor.AddObserver(“LeftButtonReleaseEvent”,self.HandleClickInRedSlice)

This is the first part of the function that i call above:

> def HandleClickInRedSlice(self):  
> if not self.Selecting:  
> return  
> coordinates = self.RedSliceInteractor.GetLastEventPosition()  
> ctrlKey = self.RedSliceInteractor.GetControlKey()

So i want to obatin also the coordinates of the point where i clicked and i i pressed the Ctrl key.  
Can you help me?

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [December 15, 2019, 6:05am UTC](https://discourse.slicer.org/t/interactor-issue/9492/2 "2019-12-15T06:05:43Z")

</div>

A post was merged into an existing topic: [Interactor from old version to 4.10.2](https://discourse.slicer.org/t/interactor-from-old-version-to-4-10-2/9493)

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [December 15, 2019, 6:05am UTC](https://discourse.slicer.org/t/interactor-issue/9492/3 "2019-12-15T06:05:43Z")

</div>


