[vtkusers] Keyboard and mouse interaction on OSX
David Gobbi
david.gobbi at gmail.com
Fri Mar 15 14:51:13 EDT 2013
On Fri, Mar 15, 2013 at 12:46 PM, Sean McBride <sean at rogue-research.com> wrote:
> On Fri, 15 Mar 2013 10:40:44 -0400, Xavier Tricoche said:
>
>>I'd be curious to know the status of the keyboard and mouse interaction
>>support in VTK on OSX. Basically my experience has been that many
>>widgets don't work properly on macs (vtkSliderWidget is one notable
>>exception) and that keyboard events (caught, e.g., through proper
>>observers) are never passed on.
>
> There is some info here:
> <http://vtk.org/Bug/view.php?id=2025>
>
> The thing is, the Cocoa framework basically requires that displaying an NSWindow be done from a bundled app.
>
>>I remember reading on the Wiki that a solution to this problem (a
>>workaround, rather) was to create bundled apps but that does not apply
>>to programs with command line options or python scripts.
>
> Actually, you can pass command line options to bundled apps.
>
> But for python scripts... hmmmm
OS X recognizes python as a "bundled" program since Leopard,
as long as you use the system's python in /usr/bin/python or some
other framework python. I've run tons of vtk/python applications,
and keyboard interaction works out of the box.
- David
More information about the vtkusers
mailing list