A small addition to my last email: the implementations for SetNextWindowInfo and WindowRemap in vtkWin32OpenGLRenderWindow.cxx are very simple. You should try copying them over to vtkCocoaRenderWindow.mm to see if they work there, too.<div>
<br></div><div> David<br><br><div class="gmail_quote">On Sat, Dec 4, 2010 at 3:10 PM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com">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;">
You can try using an older version of wxVTKRenderWindowPython.py that doesn't call "WindowRemap":<div><a href="http://vtk.org/gitweb?p=VTK.git;a=blob;f=Wrapping/Python/vtk/wx/wxVTKRenderWindow.py;hb=3eda1ca3" target="_blank">http://vtk.org/gitweb?p=VTK.git;a=blob;f=Wrapping/Python/vtk/wx/wxVTKRenderWindow.py;hb=3eda1ca3</a></div>
<div><br></div><div>The WindowRemap() method has never been implemented for either the vtkCarbonRenderWindow or the vtkCocoaRenderWindow.</div><div><br></div><font color="#888888"><div> David</div></font><div><div></div>
<div class="h5"><div><br><br><div class="gmail_quote">On Sat, Dec 4, 2010 at 2:30 PM, Scott Harris <span dir="ltr"><<a href="mailto:scottrharris@gmail.com" target="_blank">scottrharris@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I compiled wxPython for Cocoa. The demos seem to work fine.<br>
<font color="#888888">-Scott<br>
</font><div><div></div><div><br>
On Sat, Dec 4, 2010 at 7:25 AM, Lassi Paavolainen<br>
<<a href="mailto:lassi.paavolainen@jyu.fi" target="_blank">lassi.paavolainen@jyu.fi</a>> wrote:<br>
> Hi Scott,<br>
><br>
> Is your wxPython for Cocoa as well? I only found binaries for wxPython 2.9<br>
> for Cocoa in Python 2.7 from wxPython website. Did you get those somewhere<br>
> else or built yourself?<br>
><br>
> Sorry, can't really help on this one, but I'm also interested to get these<br>
> working. My plan is to have Cocoa+wxPython+VTK+ITK in 64-bits. I've tried<br>
> that combination in 32-bit and Carbon about a year ago without much of<br>
> success.<br>
><br>
> Cheers,<br>
> Lassi<br>
><br>
> On Fri, 3 Dec 2010, Scott Harris wrote:<br>
><br>
>> Is this combination supposed to work?<br>
>><br>
>> I've installed VTK 5.6.1 (64 bit, cocoa, wrap python) and wxPython 2.9.1.1<br>
>> with the system Python 2.6.1 in OS X 10.6 and when I run:<br>
>><br>
>> python wxVTKRenderWindow.py<br>
>><br>
>> I get the renderer in a separate window from the wx.Frame. It fails with<br>
>> the following error and sometimes a seg fault.<br>
>><br>
>> Warning: In<br>
>> /Users/scott/Documents/VTKStuff/VTK/Rendering/vtkCocoaRenderWindow.h, line<br>
>> 112<br>
>> vtkCocoaRenderWindow (0x10306da60): SetNextWindowInfo not implemented<br>
>> (WindowRemap not implemented).<br>
>><br>
>> Warning: In<br>
>> /Users/scott/Documents/VTKStuff/VTK/Rendering/vtkCocoaRenderWindow.mm, line<br>
>> 944<br>
>> vtkCocoaRenderWindow (0x10306da60): Can't remap the window.<br>
>><br>
>> Any ideas?<br>
>><br>
>> Should I move to 32 bits, Carbon, and wxPython for Carbon?<br>
>><br>
>> What I would really like is PyObjC+Cocoa+VTK, but I haven't been able to<br>
>> get that combination to work since OS X 10.4.<br>
>><br>
>> Thanks,<br>
>> -Scott<br></div></div></blockquote></div></div>
</div></div></blockquote></div><br></div>