Ejemplo n.º 1
0
 def memoryCheck(self):
     """Run a periodic memory check in a window"""
     if not hasattr(self, 'sysInfo'):
         self.sysInfo = slicer.vtkSystemInformation()
         self.sysInfoWindow = qt.QTextBrowser()
     if self.sysInfoWindow.visible:
         return
     self.sysInfoWindow.show()
     self.memoryCallback()
Ejemplo n.º 2
0
 def memoryCheck(self):
   """Run a periodic memory check in a window"""
   if not hasattr(self,'sysInfo'):
     self.sysInfo = slicer.vtkSystemInformation()
     self.sysInfoWindow = qt.QTextBrowser()
   if self.sysInfoWindow.visible:
     return
   self.sysInfoWindow.show()
   self.memoryCallback()