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()
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()