Commit eeaee6fad1aedb10a874c2ab6f8665ec15bafbdf
1 parent
a41a21b5
Exists in
master
and in
6 other branches
FIX: Add not show vtk error window
Showing
1 changed file
with
8 additions
and
0 deletions
Show diff stats
invesalius/project.py
... | ... | @@ -28,6 +28,7 @@ import wx |
28 | 28 | import wx.lib.pubsub as ps |
29 | 29 | import vtk |
30 | 30 | |
31 | +import constants as const | |
31 | 32 | import data.imagedata_utils as iu |
32 | 33 | import data.mask as msk |
33 | 34 | import data.polydata_utils as pu |
... | ... | @@ -186,6 +187,13 @@ class Project(object): |
186 | 187 | shutil.rmtree(dir_temp) |
187 | 188 | |
188 | 189 | def OpenPlistProject(self, filename): |
190 | + | |
191 | + if not const.VTK_WARNING: | |
192 | + fow = vtk.vtkFileOutputWindow() | |
193 | + #fow.SetFileName('c:\\vtkoutput.txt') | |
194 | + ow = vtk.vtkOutputWindow() | |
195 | + ow.SetInstance(fow) | |
196 | + | |
189 | 197 | filelist = Extract(filename, tempfile.gettempdir()) |
190 | 198 | main_plist = min(filelist, key=lambda x: len(x)) |
191 | 199 | #print main_plist | ... | ... |