[vtkusers] Cocoa, Python, VTK and wx embedded window problems
John Donker
j.h.donker at home.nl
Thu Oct 16 07:26:01 EDT 2008
Here is the link
http://wortelschijf.student.utwente.nl/vtk/vtkweird1.png
The error is in the terminal window. You can clearly see that there
two windows. One is the actual wx window (below) and the other is the
rendering by VTK. The wx window responds to events. (example: if you
resize the wx window the opengl window resizes too)
John
On Oct 16, 2008, at 12:46 PM, Mathieu Malaterre wrote:
> What link ? Where is the error message ?
>
> On Thu, Oct 16, 2008 at 12:32 PM, John Donker <j.h.donker at home.nl>
> wrote:
>> Well I have switched to carbon. The problem of the two windows still
>> happens. That's the second screenshot on the provided link.
>>
>>
>> On Oct 16, 2008, at 12:04 PM, Mathieu Malaterre wrote:
>>
>>> On Thu, Oct 16, 2008 at 11:43 AM, John Donker <j.h.donker at home.nl>
>>> wrote:
>>>>
>>>> The problem is quite annoying and it would be nice if there was
>>>> fix for
>>>> it.
>>>> Since we are aiming at a cross platform application. (The whole
>>>> reason we
>>>> chose VTK+WX+python)
>>>
>>> Suggestions:
>>> 1. Switch to Carbon (as it seems to be the default for wx people)
>>> 2. Write your own C extension that cast the Handle from a Cocoa
>>> window
>>> and call it from python layer (untrivial), or simply hack your way
>>> in
>>> wxPython source to modify the culprit function + recompile (you'll
>>> not
>>> be able to distribute your python app only, you'll have to ship your
>>> custom wx libs, at least on Mac).
>>> 3. Get the wxVTK src from http://wxvtk.sf.net and wrap it to python
>>> (non-trivial either IMHO, because of multiple inheritance)
>>>
>>> Use Qt :)
>>>
>>> --
>>> Mathieu
>>
>> John Donker
>> j.h.donker at home.nl (thuis)
>> j.h.donker at wortelschijf.nl (werk)
>> j.h.donker at student.utwente.nl (studie)
>>
>>
>>
>>
>> _______________________________________________
>> 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
>>
>
>
>
> --
> Mathieu
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