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

Berk Geveci berk.geveci at kitware.com
Wed Oct 8 15:50:10 EDT 2008


It sounds like you have to build your own version of ParaView using
your own Python. ParaView comes prepackaged with a subset of Python
and it is not trivial to add to it. Follow the instructions on the
ParaView wiki to build your own ParaView.
I considered not bundling Python with ParaView but that would require
all users to first install Python, which is not an ideal solution...

-berk

On Wed, Oct 8, 2008 at 4:44 AM, Guy HUBERT <hubert at deltacad.fr> wrote:
> 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
>
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
>


More information about the ParaView mailing list