<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Python 2.6 enabled VTK 5.4 Windows binaries</title>
	<atom:link href="http://cpbotha.net/2009/08/13/python-2-6-enabled-vtk-5-4-windows-binaries/feed/" rel="self" type="application/rss+xml" />
	<link>http://cpbotha.net/2009/08/13/python-2-6-enabled-vtk-5-4-windows-binaries/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=python-2-6-enabled-vtk-5-4-windows-binaries</link>
	<description>voices in my head</description>
	<lastBuildDate>Tue, 01 May 2012 14:02:58 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Anto</title>
		<link>http://cpbotha.net/2009/08/13/python-2-6-enabled-vtk-5-4-windows-binaries/comment-page-1/#comment-4575</link>
		<dc:creator>Anto</dc:creator>
		<pubDate>Tue, 17 May 2011 03:09:52 +0000</pubDate>
		<guid isPermaLink="false">http://cpbotha.net/?p=551#comment-4575</guid>
		<description>Thanks for your answer.  I added the other value to my PYTHONPATH and i am still stuck with that error. What else could it be ? I added it just like you said , separated by a semicolon, then i restarted my system.</description>
		<content:encoded><![CDATA[<p>Thanks for your answer.  I added the other value to my PYTHONPATH and i am still stuck with that error. What else could it be ? I added it just like you said , separated by a semicolon, then i restarted my system.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cpbotha</title>
		<link>http://cpbotha.net/2009/08/13/python-2-6-enabled-vtk-5-4-windows-binaries/comment-page-1/#comment-4570</link>
		<dc:creator>cpbotha</dc:creator>
		<pubDate>Mon, 16 May 2011 05:41:59 +0000</pubDate>
		<guid isPermaLink="false">http://cpbotha.net/?p=551#comment-4570</guid>
		<description>You have to add \python27\VTK\bin also to your system PATH, i.e. via the control panel, else Windows can&#039;t find the DLLs. Adding this to sys.path in Python is not sufficient.

PYTHONPATH needs to get *both*, i.e.:
PYTHONPATH=C:\python27\VTK\bin;C:\python27\VTK\lib\site-packages</description>
		<content:encoded><![CDATA[<p>You have to add \python27\VTK\bin also to your system PATH, i.e. via the control panel, else Windows can&#8217;t find the DLLs. Adding this to sys.path in Python is not sufficient.</p>
<p>PYTHONPATH needs to get *both*, i.e.:<br />
PYTHONPATH=C:\python27\VTK\bin;C:\python27\VTK\lib\site-packages</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anto</title>
		<link>http://cpbotha.net/2009/08/13/python-2-6-enabled-vtk-5-4-windows-binaries/comment-page-1/#comment-4569</link>
		<dc:creator>Anto</dc:creator>
		<pubDate>Mon, 16 May 2011 02:45:38 +0000</pubDate>
		<guid isPermaLink="false">http://cpbotha.net/?p=551#comment-4569</guid>
		<description>hi, i tried what you say in here. But i think im doing something wrong or not doing all the steps.  I did this  in python cmd line:
import sys
sys.path.append(&quot;C:\python27\VTK\bin&quot;)
 
in order to add the directory to PATH as you said.
then i went to control panel, system, advanced, environment variables and create PYTHONPATH and give the value of C:\python27\VTK\lib\site-packages.  When i try to import vtk it says :&quot;File C:\python27\VTK\lib\site-packages\vtk\common.py   from vtk Common import *  ImportError DLL load file&quot; .

what am i doing wrong here ?</description>
		<content:encoded><![CDATA[<p>hi, i tried what you say in here. But i think im doing something wrong or not doing all the steps.  I did this  in python cmd line:<br />
import sys<br />
sys.path.append(&#8220;C:\python27\VTK\bin&#8221;)</p>
<p>in order to add the directory to PATH as you said.<br />
then i went to control panel, system, advanced, environment variables and create PYTHONPATH and give the value of C:\python27\VTK\lib\site-packages.  When i try to import vtk it says :&#8221;File C:\python27\VTK\lib\site-packages\vtk\common.py   from vtk Common import *  ImportError DLL load file&#8221; .</p>
<p>what am i doing wrong here ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zsl</title>
		<link>http://cpbotha.net/2009/08/13/python-2-6-enabled-vtk-5-4-windows-binaries/comment-page-1/#comment-4367</link>
		<dc:creator>zsl</dc:creator>
		<pubDate>Thu, 24 Mar 2011 10:17:19 +0000</pubDate>
		<guid isPermaLink="false">http://cpbotha.net/?p=551#comment-4367</guid>
		<description>What about Python 2.7 version?</description>
		<content:encoded><![CDATA[<p>What about Python 2.7 version?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fritz</title>
		<link>http://cpbotha.net/2009/08/13/python-2-6-enabled-vtk-5-4-windows-binaries/comment-page-1/#comment-2939</link>
		<dc:creator>Fritz</dc:creator>
		<pubDate>Thu, 18 Nov 2010 08:43:55 +0000</pubDate>
		<guid isPermaLink="false">http://cpbotha.net/?p=551#comment-2939</guid>
		<description>Sidenote, to install this on my Ubuntu-box (the VTK and Mayavi packages) took me about 10 min of waiting and one painless &#039;sudo apt-get install&#039; command. 
Mac - compiling the whole day
Windows - stealing someone else&#039;s binary + environment variables etc.  - 50 min.</description>
		<content:encoded><![CDATA[<p>Sidenote, to install this on my Ubuntu-box (the VTK and Mayavi packages) took me about 10 min of waiting and one painless &#8216;sudo apt-get install&#8217; command.<br />
Mac &#8211; compiling the whole day<br />
Windows &#8211; stealing someone else&#8217;s binary + environment variables etc.  &#8211; 50 min.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fritz</title>
		<link>http://cpbotha.net/2009/08/13/python-2-6-enabled-vtk-5-4-windows-binaries/comment-page-1/#comment-2938</link>
		<dc:creator>Fritz</dc:creator>
		<pubDate>Thu, 18 Nov 2010 08:40:52 +0000</pubDate>
		<guid isPermaLink="false">http://cpbotha.net/?p=551#comment-2938</guid>
		<description>Thanks for making these binaries available bru.
I&#039;m using them for trying out GIS images in 3D. Just need to figure out how to use color and how to change the height values.

Fritz</description>
		<content:encoded><![CDATA[<p>Thanks for making these binaries available bru.<br />
I&#8217;m using them for trying out GIS images in 3D. Just need to figure out how to use color and how to change the height values.</p>
<p>Fritz</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cpbotha</title>
		<link>http://cpbotha.net/2009/08/13/python-2-6-enabled-vtk-5-4-windows-binaries/comment-page-1/#comment-1875</link>
		<dc:creator>cpbotha</dc:creator>
		<pubDate>Thu, 11 Mar 2010 07:45:47 +0000</pubDate>
		<guid isPermaLink="false">http://cpbotha.net/?p=551#comment-1875</guid>
		<description>Dear Gib,

Fantastic!  Thanks for coming back to share.

Kindest regards,
Charl</description>
		<content:encoded><![CDATA[<p>Dear Gib,</p>
<p>Fantastic!  Thanks for coming back to share.</p>
<p>Kindest regards,<br />
Charl</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gib</title>
		<link>http://cpbotha.net/2009/08/13/python-2-6-enabled-vtk-5-4-windows-binaries/comment-page-1/#comment-1873</link>
		<dc:creator>Gib</dc:creator>
		<pubDate>Thu, 11 Mar 2010 00:22:06 +0000</pubDate>
		<guid isPermaLink="false">http://cpbotha.net/?p=551#comment-1873</guid>
		<description>Hi there, I have finally got QVTKRenderWindowInteractor working with your VTK build, and it turned out to be very simple (I am just a beginner with Python and Qt).  In case someone is interested here is what I did (and thanks!) :

import vtk
from vtk.qt4.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor

        # ...
        # set up PyQt UI, created with Qt Designer,which includes a
        # QWidget named page_VTK, as the 3rd entry in stackedWidget
        # ...
        page_VTK = self.ui.page_VTK
        page_VTK.setMaximumSize(QtCore.QSize(800, 600))
        self.QVTKRenderWidgetCone(page_VTK)
        self.ui.stackedWidget.setCurrentIndex(2)


    def QVTKRenderWidgetCone(self,page_VTK):    
        &quot;&quot;&quot;A simple example that uses the QVTKRenderWindowInteractor class (vtk.qt4).&quot;&quot;&quot;

        layout = QtGui.QVBoxLayout(page_VTK)        
        # create the widget
        VTKscene = QVTKRenderWindowInteractor(page_VTK)
        VTKscene.Initialize()
        VTKscene.Start()
        renWin = VTKscene.GetRenderWindow()

        layout.addWidget(VTKscene)
        ren = vtk.vtkRenderer()
        renWin.AddRenderer(ren)
        
        cone = vtk.vtkConeSource()
        cone.SetResolution(18)
        coneMapper = vtk.vtkPolyDataMapper()
        coneMapper.SetInput(cone.GetOutput())
        coneActor1 = vtk.vtkActor()
        coneActor1.SetMapper(coneMapper)
        coneActor2 = vtk.vtkActor()
        coneActor2.SetMapper(coneMapper)
        ren.AddActor(coneActor1)
        ren.AddActor(coneActor2)

        coneActor1.SetPosition(2, 0, 1)
        coneActor2.SetPosition(0, 2, 0)       
        # show the widget
        VTKscene.show()</description>
		<content:encoded><![CDATA[<p>Hi there, I have finally got QVTKRenderWindowInteractor working with your VTK build, and it turned out to be very simple (I am just a beginner with Python and Qt).  In case someone is interested here is what I did (and thanks!) :</p>
<p>import vtk<br />
from vtk.qt4.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor</p>
<p>        # &#8230;<br />
        # set up PyQt UI, created with Qt Designer,which includes a<br />
        # QWidget named page_VTK, as the 3rd entry in stackedWidget<br />
        # &#8230;<br />
        page_VTK = self.ui.page_VTK<br />
        page_VTK.setMaximumSize(QtCore.QSize(800, 600))<br />
        self.QVTKRenderWidgetCone(page_VTK)<br />
        self.ui.stackedWidget.setCurrentIndex(2)</p>
<p>    def QVTKRenderWidgetCone(self,page_VTK):<br />
        &#8220;&#8221;"A simple example that uses the QVTKRenderWindowInteractor class (vtk.qt4).&#8221;"&#8221;</p>
<p>        layout = QtGui.QVBoxLayout(page_VTK)<br />
        # create the widget<br />
        VTKscene = QVTKRenderWindowInteractor(page_VTK)<br />
        VTKscene.Initialize()<br />
        VTKscene.Start()<br />
        renWin = VTKscene.GetRenderWindow()</p>
<p>        layout.addWidget(VTKscene)<br />
        ren = vtk.vtkRenderer()<br />
        renWin.AddRenderer(ren)</p>
<p>        cone = vtk.vtkConeSource()<br />
        cone.SetResolution(18)<br />
        coneMapper = vtk.vtkPolyDataMapper()<br />
        coneMapper.SetInput(cone.GetOutput())<br />
        coneActor1 = vtk.vtkActor()<br />
        coneActor1.SetMapper(coneMapper)<br />
        coneActor2 = vtk.vtkActor()<br />
        coneActor2.SetMapper(coneMapper)<br />
        ren.AddActor(coneActor1)<br />
        ren.AddActor(coneActor2)</p>
<p>        coneActor1.SetPosition(2, 0, 1)<br />
        coneActor2.SetPosition(0, 2, 0)<br />
        # show the widget<br />
        VTKscene.show()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gib</title>
		<link>http://cpbotha.net/2009/08/13/python-2-6-enabled-vtk-5-4-windows-binaries/comment-page-1/#comment-1863</link>
		<dc:creator>Gib</dc:creator>
		<pubDate>Tue, 09 Mar 2010 21:17:41 +0000</pubDate>
		<guid isPermaLink="false">http://cpbotha.net/?p=551#comment-1863</guid>
		<description>My knowledge of PyQt and VTK is still pretty rudimentary.  If you have the patience, here is my post to the PyQt list describing my failed attempt to do the job programmatically:
http://www.riverbankcomputing.com/pipermail/pyqt/2010-March/026110.html</description>
		<content:encoded><![CDATA[<p>My knowledge of PyQt and VTK is still pretty rudimentary.  If you have the patience, here is my post to the PyQt list describing my failed attempt to do the job programmatically:<br />
<a href="http://www.riverbankcomputing.com/pipermail/pyqt/2010-March/026110.html" rel="nofollow">http://www.riverbankcomputing.com/pipermail/pyqt/2010-March/026110.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gib</title>
		<link>http://cpbotha.net/2009/08/13/python-2-6-enabled-vtk-5-4-windows-binaries/comment-page-1/#comment-1862</link>
		<dc:creator>Gib</dc:creator>
		<pubDate>Tue, 09 Mar 2010 21:11:35 +0000</pubDate>
		<guid isPermaLink="false">http://cpbotha.net/?p=551#comment-1862</guid>
		<description>There could well be a way use a placeholder in Designer then build the QVTKWidget programmatically, but I haven&#039;t been able to find it yet.  I&#039;ve seen some very suggestive hints, but for me they don&#039;t quite work as advertised.  Supposedly a QWidget can be promoted to a QVTKWidget in Designer, but in my case all the steps seem to be OK but the promotion doesn&#039;t occur.  What I find puzzling is that the VTK example:
VTK\Examples\GUI\Qt\SimpleView\uiSimpleView4.ui contains such a promoted QVTKWidget, which is displayed in DEsigner as such.  I guess it&#039;s in the ui code, but the associated support is missing from my installation.</description>
		<content:encoded><![CDATA[<p>There could well be a way use a placeholder in Designer then build the QVTKWidget programmatically, but I haven&#8217;t been able to find it yet.  I&#8217;ve seen some very suggestive hints, but for me they don&#8217;t quite work as advertised.  Supposedly a QWidget can be promoted to a QVTKWidget in Designer, but in my case all the steps seem to be OK but the promotion doesn&#8217;t occur.  What I find puzzling is that the VTK example:<br />
VTK\Examples\GUI\Qt\SimpleView\uiSimpleView4.ui contains such a promoted QVTKWidget, which is displayed in DEsigner as such.  I guess it&#8217;s in the ui code, but the associated support is missing from my installation.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

