def _beforePreview(self): ImagePreviewDialog._beforePreview(self) self.lastObj = None self.rightPreviewLabel = "Filtered particle" self.message = "Filtering particle..." self.previewLabel = "Particle" self.rightImage = ImageHandler()._img
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)
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)