Here is it:<br><br>self.win1=QVTKWidget()<br>self.win2=QVTKWidget()<br>self.win3=QVTKWidget3()<br>self.win4=QVTKWidget()<br><br>Tiled in a mainwindow <br><br>Now when I want to measure distance using distance widget, how to pass the active renderwindowInteractor  to the distacne widget.<br>
<br>if we know the active render window, we can use renwin.getInteractor() and pass it to it.<br><br>Otherwise, I have to create separate functions to each and every window I would like to measure.<br><br>I am trying from PyQt side, is there any method to get active widget..there should be isn&#39;t it??<br>
<br>Thanks<br><br>Jothy<br><br><div class="gmail_quote">On Wed, Jan 20, 2010 at 2:53 PM, David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria%2Bvtk@gmail.com">daviddoria+vtk@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="gmail_quote"><div><div></div><div class="h5">On Wed, Jan 20, 2010 at 9:28 AM, KS Jothybasu <span dir="ltr">&lt;<a href="mailto:jothybasu@gmail.com" target="_blank">jothybasu@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all,<br><br>How to get the active render window?<br><br>Any hint?<br><br>Thanks<br><br>Jothy<br>
<br><br></blockquote><div class="gmail_quote"><br></div></div></div><div class="gmail_quote">Can you give an example of code where you wouldn&#39;t know which window was active?</div><br clear="all">Thanks,<br><font color="#888888"><br>
<div>David</div></font></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br>