[vtkusers] wx python problem

Nicola Creati ncreati at inogs.it
Thu Feb 25 04:56:12 EST 2010


David Doria wrote:
> I am using Python 2.6. I tried to do:
>
> >>> from wx import *
>
> But it says:
>
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File 
> "/home/doriad/bin/VTK/Wrapping/Python/vtk/wx/wxVTKRenderWindow.py", 
> line 88, in <module>
>     baseClass = wx.Window
> AttributeError: 'module' object has no attribute 'Window'
>
> Does anyone know if this is a version issue (of wx or python)?
>
> Thanks,
>
> David
>
Hi,

"import wx" instead of " from wx import * " should solve your problem.


Nicola




More information about the vtkusers mailing list