Exemplo n.º 1
0
 def remove_background(self):
     """
         Opens the 'remove background' dialog.
     """
     bg_view = BackgroundView(parent=self.view)
     self._child_ctrl_ref = BackgroundController(model=self.model.experimental_pattern, view=bg_view, parent=self)
     bg_view.present()
Exemplo n.º 2
0
 def on_not_automated(dialog):
     for specimen in specimens:
         if not specimen in self.model.specimens:
             raise ValueError("Specimen `%s` is not part of this Project!" % specimen)
         else:
             bg_view = BackgroundView(parent=self.parent.view)
             BackgroundController(model=specimen.experimental_pattern, view=bg_view, parent=self)
             bg_view.present()
Exemplo n.º 3
0
 def remove_background(self):
     """
         Opens the 'remove background' dialog.
     """
     bg_view = BackgroundView(parent=self.view)
     self._child_ctrl_ref = BackgroundController(
         model=self.model.experimental_pattern, view=bg_view, parent=self)
     bg_view.present()