Skip to content
Snippets Groups Projects
Commit aa4e0d02 authored by David Gobbi's avatar David Gobbi
Browse files

Fix remaining py3k issues with vtk.tk module.

Two major changes: 1) the vtkLoadPythonTkWidgets utility module is now
imported explicitly as a relative module, necessitating absolute_import.
The alternative is to import it as vtk.tk.vtkLoadPythonTkWidgets, which
makes the tk module less mobile, in case someone wanted to incorporate it
or the vtk module itself into a larger package (e.g. what paraview does).

2) I've explicitly added an "if" check for python3 before importing the
tkinter module.  This is done to ensure that an appropriate error is
reported if the module fails to load (i.e. so that it won't complain
about trying to import "tkinter" on Python 2, just because it had a
fallthrough on an attemp to import "Tkinter".
parent c7d7de28
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment