[vtkusers] Re: wxVTKRenderWindowInteractor.py fails on OSX with VTK Cocoa build
Dan White
white at mpi-cbg.de
Wed Feb 20 09:44:02 EST 2008
Hi All,
after some further investigation,
its actually xwWidgets wherein lies the problem
the stable OSX port of xwWidgets is called wxMac,
and indeed it uses Carbon,
so i guess xwPython is using wxMac
There is a new OSX port in the wxWidgets source code already,
called xwCocoa....
however this is still missing much functionality....
So in the long run, for 64 bit VTK application using wxPython on OSX
wxPython needs to be able to use the new wxCocoa.
In the mean time, the only other option left for a 64 bit
wxPython GUI VTK application on OSX is.....
X11 (AAAAAARRRGGGHHHHH!!!!!)
... well i guess i will start work on that then!
time to break out fink....
Dan
On Feb 20, 2008, at 3:03 PM, Dan White wrote:
> Hi Mike,
>
> So what you are saying is...
>
> wxPython uses Carbon not Cocoa....
> so actually wxPython needs to learn how to use Cocoa?
>
> Is that the point?
>
> Dan
>
>
>
>
>
>
> On Feb 20, 2008, at 2:20 PM, Mike Jackson wrote:
>
>> Oh, the fun of Carbon, Cocoa and C++ developers..
>>
>> Early on when all those 3rd party toolbox developers brought their
>> toys to OS X they didn't know objective-C. This lead to them using
>> Carbon (C++) instead to port their code to OS X. Fast forward a few
>> years to the present time and now you get the current batch of
>> problems. Carbon didn't go 64 Bit, only cocoa, but all those 3rd
>> party
>> toolkits are still Carbon. My guess is that python and wx are all
>> based on carbon so you _have_ to use a Carbon build of VTK to
>> inter-operate with those toolkits.
>>
>> If this is a limitation because Carbon is only 32 bit I would find
>> the
>> proper person at Apple and state your case as to why Carbon should be
>> ported to 64 bit (If at all possible).
>>
>> So, the short answer to your question is that if you are using wx you
>> will have to use a Carbon build of VTK as wx is expecting Carbon data
>> structures.
>>
>>
>> Sorry for the bad news
>> Mike Jackson
>>
>> On Wed, Feb 20, 2008 at 3:56 AM, Dan White <white at mpi-cbg.de> wrote:
>>> Hi OS X VTKers, like Sean, Gaetan, et al,
>>>
>>> We notice that wxVTKRenderWindowInteractor.py
>>> is failing for VTK Ccoca builds:
>>>
>>> here is the VTK bug report i filed....
>>>
>>> did anyone else run into that?
>>> Does anyone else use xwPython for a GUI on OSX?
>>>
>>> cheers
>>>
>>> Dan
>>>
>>>
>>> Cocoa enabled build of VTK CVS on OSX 10.5.2 with 10.5 SDK
>>> -arch -i386;86_64
>>> cocoa needed for 64 bit VTK, carbon is not 64 bit and is
>>> depreciated.
>>>
>>> wxVTKRenderWindowInteractor.py throws a type error as it is getting
>>> only 1 argument when expecting 2
>>> in onPaint. This does not happen wiht a Carbon build of VTK,
>>> so there must be some thing wrong with the way cocoa vtk render
>>> window
>>> is talking to wx render window interactor?
>>> This bug also shows up in BioImageXD with a VTK cocoa build, as it
>>> also uses wx.
>>> (again carbon vtk works as expected, but cant build 64 bit with
>>> carbon, and never will be able to )
>>>
>>>
>>>
>>> private-white:Desktop dan$ python2.5 /Users/dan/Desktop/VTKCVSgcc/
>>> VTK/
>>> Wrapping/Python/vtk/wx/wxVTKRenderWindowInteractor.py
>>> Traceback (most recent call last):
>>> File "/Users/dan/Desktop/VTKCVSgcc/VTK/Wrapping/Python/vtk/wx/
>>> wxVTKRenderWindowInteractor.py", line 311, in OnPaint
>>> self._Iren.GetRenderWindow().SetSize(self.GetSizeTuple())
>>> TypeError: function takes exactly 2 arguments (1 given)
>>> Dr. Daniel James White BSc. (Hons.) PhD
>>> Senior Microscopist / Image Processing and Analysis
>>> Light Microscopy Facility
>>> Max Planck Institute of Molecular Cell Biology and Genetics
>>> Pfotenhauerstrasse 108
>>> 01307 DRESDEN
>>> Germany
>>>
>>>
>>> New Mobile Number!!!
>>>
>>> +49 (0)15114966933 (German Mobile)
>>> +49 (0)351 210 2627 (Work phone at MPI-CBG)
>>> +49 (0)351 210 1078 (Fax MPI-CBG LMF)
>>> +358 (0) 468102840 (Finnish mobile, only when I'm in Finland)
>>> http://www.bioimagexd.net
>>> http://www.chalkie.org.uk
>>> dan at chalkie.org.uk
>>> ( white at mpi-cbg.de )
>>>
>
> Dr. Daniel James White BSc. (Hons.) PhD
> Senior Microscopist / Image Processing and Analysis
> Light Microscopy Facility
> Max Planck Institute of Molecular Cell Biology and Genetics
> Pfotenhauerstrasse 108
> 01307 DRESDEN
> Germany
>
>
> New Mobile Number!!!
>
> +49 (0)15114966933 (German Mobile)
> +49 (0)351 210 2627 (Work phone at MPI-CBG)
> +49 (0)351 210 1078 (Fax MPI-CBG LMF)
> +358 (0) 468102840 (Finnish mobile, only when I'm in Finland)
> http://www.bioimagexd.net
> http://www.chalkie.org.uk
> dan at chalkie.org.uk
> ( white at mpi-cbg.de )
>
>
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Bioimagexd-devel mailing list
> Bioimagexd-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bioimagexd-devel
Dr. Daniel James White BSc. (Hons.) PhD
Senior Microscopist / Image Processing and Analysis
Light Microscopy Facility
Max Planck Institute of Molecular Cell Biology and Genetics
Pfotenhauerstrasse 108
01307 DRESDEN
Germany
New Mobile Number!!!
+49 (0)15114966933 (German Mobile)
+49 (0)351 210 2627 (Work phone at MPI-CBG)
+49 (0)351 210 1078 (Fax MPI-CBG LMF)
+358 (0) 468102840 (Finnish mobile, only when I'm in Finland)
http://www.bioimagexd.net
http://www.chalkie.org.uk
dan at chalkie.org.uk
( white at mpi-cbg.de )
More information about the vtkusers
mailing list