Example #1
0
 def _beforePreview(self):
     ImagePreviewDialog._beforePreview(self)
     self.lastObj = None
     self.rightPreviewLabel = "Filtered particle"
     self.message = "Filtering particle..."
     self.previewLabel = "Particle"
     self.rightImage = ImageHandler()._img
Example #2
0
 def _beforePreview(self):
     ImagePreviewDialog._beforePreview(self)
     self.lastObj = None
     self.rightPreviewLabel = "Filtered particle"
     self.message = "Filtering particle..."
     self.previewLabel = "Particle"
     self.rightImage = ImageHandler()._img
Example #3
0
 def _createPreview(self, frame):
     """ Should be implemented by subclasses to 
     create the items preview. 
     """
     self._previews = []
     for i, label in enumerate(MASKRESULT_LABELS):
         self.previewLabel = label
         previewFrame = tk.Frame(frame)
         ImagePreviewDialog._createPreview(self, previewFrame)
         self._previews.append(self.preview) # store all previews created
         previewFrame.grid(row=i/4, column=i%4)
Example #4
0
 def _createPreview(self, frame):
     """ Should be implemented by subclasses to 
     create the items preview. 
     """
     self._previews = []
     for i, label in enumerate(MASKRESULT_LABELS):
         self.previewLabel = label
         previewFrame = tk.Frame(frame)
         ImagePreviewDialog._createPreview(self, previewFrame)
         self._previews.append(self.preview)  # store all previews created
         previewFrame.grid(row=i / 4, column=i % 4)