[Paraview] How to use TkInter in paraview python shell ?

Guy HUBERT hubert at deltacad.fr
Wed Oct 8 04:44:50 EDT 2008


Hello,

I have to develop a small GUI for a python script connected to pvservermanager. I would like to use Tkinter.

I used paraview 3.2.1 on windows XP installed directly from packaged binaries.

When I try to import Tkinter, I got the message
>>> import Tkinter
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "C:\Programs\ParaView 3.2.1\bin\lib\lib-tk\Tkinter.py", line 38, in <module>
    import _tkinter # If this fails your Python may not be configured for Tk
ImportError: No module named _tkinter
>>> 

For example in a standalone python 24 installation, there is also Tkinter.py in python24/Lib/lib-tk folder, 
_tkinter.lib on python24/libs folder and tk84.dll in python24/dlls folder.

In the paraview python installation, there is only Tkinter.py in paraview/Lib/lib-tk.

Is somebody has already solved this problem ?

Thanks
Guy



More information about the ParaView mailing list