Exemplo n.º 1
0
 def __init__(self, actionlist, paths, settings, output=sys.stdout):
     self.verbose = settings['verbose'] or settings['interactive']
     self.settings = settings
     self.output = output
     self._pubsub()
     data, warning = api.open_actionlist(
         self.verify_actionlist(actionlist))
     if formField.get_safe():
         if warning:
             raise safe.UnsafeError(warning)
     else:
         self.show_message(warning)
     report = api.apply_actions_to_photos(data['actions'], settings, \
                                                         paths=paths)
Exemplo n.º 2
0
 def on_drop(self, filenames, x, y):
     api.apply_actions_to_photos(self.tree.export_forms(),
         wx.GetApp().settings, paths=filenames, drop=True)
Exemplo n.º 3
0
 def _execute(self, actionlist, **keyw):
     app = wx.GetApp()
     self.set_report([])
     api.apply_actions_to_photos(actionlist, app.settings,
         update=self._send_update_event, **keyw)