[vtkusers] vtkTkRenderWidget on OSX

Lise Angell lise.angell at gmail.com
Wed Nov 2 03:54:29 EST 2005


Hi Martin,

It seems like I have the necessary stuff installed (according to the
test script test_vtk.py), but when I ran the example you gave I get
this error:

>>> import vtk
>>> from vtk.tk.vtkTkRenderWidget import vtkTkRenderWidget
>>> import Tkinter
>>> t = Tkinter.Toplevel()
>>> pane = vtkTkRenderWidget(t, width=300, height=300)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/local/encap/VTK-CVS-20050919+0/lib/python2.3/site-packages/vtk/tk/vtkTkRenderWidget.py",
line 81, in __init__
    vtkLoadPythonTkWidgets(master.tk)
  File "/usr/local/encap/VTK-CVS-20050919+0/lib/python2.3/site-packages/vtk/tk/vtkLoadPythonTkWidgets.py",
line 63, in vtkLoadPythonTkWidgets
    interp.call('load', filename)
_tkinter.TclError: image not found
>>>

Any clues?

Lise

On 11/1/05, Martin Costabel <costabel at wanadoo.fr> wrote:
> Yes, as part of the test_vtk.py module from mayavi. This runs correctly
> with the vtk-py23 package from Fink. The syntax in test_vtk.py is
> somewhat different, see
> http://cvs.sourceforge.net/viewcvs.py/*checkout*/mayavi/mayavi/doc/test_vtk.py
>
>    import vtk
>    from vtk.tk.vtkTkRenderWidget import vtkTkRenderWidget
>    import Tkinter
>    t = Tkinter.Toplevel()
>    pane = vtkTkRenderWidget(t,width=300,height=300)
>
> --
> Martin
>
> _______________________________________________
> 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
>


--
"Je forme une entreprise qui n'eut jamais d'exemple,
et dont l'exécution n'aura point d'imitateur."  J-J Rousseau



More information about the vtkusers mailing list