Пример #1
0
 def _export_cb(self, widget):
     """Properties dialog export callback"""
     self._dialog.hide()
     format_id, filename = dialogs.save_dialog(
         _("Export Brushes"),
         None, [(_("MyPaint brush package (*.zip)"), "*.zip")],
         default_format=(0, ".zip"))
     if filename is not None:
         self._app.brushmanager.export_group(self._group, filename)
Пример #2
0
 def _export_cb(self, widget):
     """Properties dialog export callback"""
     self._dialog.hide()
     format_id, filename = dialogs.save_dialog(
             _("Export Brushes"), None,
             [(_("MyPaint brush package (*.zip)"), "*.zip")],
             default_format = (0, ".zip"))
     if filename is not None:
         self._app.brushmanager.export_group(self._group, filename)
Пример #3
0
 def export_group_cb(self, w, group):
     format_id, filename = dialogs.save_dialog(_("Export Brushes"), None,
                              [(_("MyPaint brush package (*.zip)"), "*.zip")],
                              default_format = (0, ".zip"))
     if filename is not None:
         self.bm.export_group(group, filename)