<div dir="ltr">Hi David,<div><br></div><div>Thank you for your quick answer.</div><div><br></div><div>Just to make something clear here. I am not talking about keyboard focus here. The window doesn't take the focus at all. So, what happens is that</div><div>the window appears but it is hidden behind other windows and you need to press Command + Tab to try to find the VTK window. The same happens even </div><div>when you use pythonw. After finding the window and click on it then you have the keyboard events working. </div><div>As you understand this is frustrating for many of our users because they don't get any indication that the application is running.</div><div><br></div><div>Also, I am not happy going into the direction of making an application bundle because I want to open vtk windows from inside ipython in a module like fashion as you do matlplotlib.show(). </div><div>And all this works absolutely fine with VTK in Linux. We use vtk visualization from inside a python library called Dipy which is  a module (a python library) rather than a standalone application. But perhaps there is something that I am missing here. Let me know what you think.</div><div><br></div><div>Best regards,</div><div>Eleftherios</div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 12, 2015 at 5:58 PM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Eleftherios,<div><br></div><div>On OS X the system python is properly set up to receive keyboard focus,</div><div>but the anaconda python is not.  In general, in order for a program to</div><div>receive keyboard events, it must be part of an app bundle, though I'm</div><div>sure there are exceptions.  I remember that many, many years ago it</div><div>was necessary to run "pythonw" to get a functional GUI app in python.</div><div><br></div><div>If you create a bundle for your python program, you can get keyboard</div><div>events regardless of whose python you use.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div> - David</div></font></span><div><div class="h5"><div><br></div><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 12, 2015 at 3:32 PM, Eleftherios Garyfallidis <span dir="ltr"><<a href="mailto:garyfallidis@gmail.com" target="_blank">garyfallidis@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hello all,<div><br></div><div>In OSX using vtk 6 or vtk 5 installed from anaconda the window does not get the focus. </div><div><br></div><div>This should be trivial to test. You can just run the hello world example and see it by yourself.</div><div><a href="http://www.vtk.org/Wiki/VTK/Examples/Python/Cylinder" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Python/Cylinder</a><br></div><div><br></div><div>We observed the same issue both with osx 10.9 and 10.11</div><div><br></div><div>Best regards,</div><div>Eleftherios</div></div></blockquote></div></div></div></div></div></div>
</blockquote></div><br></div>