[vtkusers] Cocoa, Python, VTK and wx embedded window problems
John Donker
j.h.donker at home.nl
Wed Oct 15 18:25:05 EDT 2008
Just tried this. It's indeed stable, but has a nasty suprise. The
carbon window just stays in the corner. Sigh... The other window
continues to respond to data.
On Oct 15, 2008, at 11:19 PM, Michael Jackson wrote:
> The Carbon is the way to go with this. I believe wxWidgets is
> "Carbon" based and so is Python would be my guess. By compiling VTK
> with Cocoa you are mixing the 2 technologies together which does not
> work.
>
> I would stick with Carbon and figure out why it isn't "stable".
>
> _________________________________________________________
> Mike Jackson mike.jackson at bluequartz.net
> BlueQuartz Software www.bluequartz.net
> Principal Software Engineer Dayton, Ohio
>
> On Oct 15, 2008, at 5:01 PM, John Donker wrote:
>
>> I tried tried that earlier and it was completely unstable but
>> displayed correctly.
>>
>> On Oct 15, 2008, at 10:52 PM, Michael Jackson wrote:
>>
>>> I am going to take a stab in the dark here and suggest you
>>> recompile with Carbon=ON and Cocoa=OFF and see what happens.
>>>
>>>
>>> _________________________________________________________
>>> Mike Jackson mike.jackson at bluequartz.net
>>> BlueQuartz Software www.bluequartz.net
>>> Principal Software Engineer Dayton, Ohio
>>>
>>> On Oct 15, 2008, at 4:42 PM, John Donker wrote:
>>>
>>>> Hi,
>>>>
>>>> I am working on a project that is using VTK with wxWidgets and
>>>> Python. And on OS X (10.5) something very strange happens. When I
>>>> try to embed the VTK window (like in the example
>>>> wxvtkWindowRender.py in wrapping/python/vtk/wx) I get two windows
>>>> of the same size. One displays the VTK openGL output and the
>>>> other responds to events. The openGL output responds correctly,
>>>> except that it's rendering in a different window.
>>>>
>>>> The same python code works on Windows Vista without any problems.
>>>> In the terminal some messages appear that the window can't be
>>>> remapped because it's unsupported. A quick check in the headers
>>>> confirms this. But I have seen embedded VTK windows in other apps
>>>> so this unlikely. Since I have very limited experience with
>>>> OpenGL and Cocoa I don't really have an idea where to look to
>>>> solve this problem.
>>>>
>>>> I am compiling from the command-line with shared_libs,
>>>> python_wrapping and cocoa. Is this a known bug?
>>>>
>>>> Sincerely,
>>>>
>>>> John Donker
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> This is the private VTK discussion list.
>>>> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>>>> Follow this link to subscribe/unsubscribe:
>>>> http://www.vtk.org/mailman/listinfo/vtkusers
>>>
>>
>> John Donker
>> j
>>
>>
>>
>>
>> _______________________________________________
>> This is the private VTK discussion list.
>> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>
John Donker
j.h.donker at home.nl (thuis)
j.h.donker at wortelschijf.nl (werk)
j.h.donker at student.utwente.nl (studie)
More information about the vtkusers
mailing list