def on_PrintLabels__activate(self, button): selected = self.results.get_selected() sellable = selected.sellable label_data = self.run_dialog(PrintLabelEditor, None, self.store, sellable) if label_data: print_labels(label_data, self.store)
def _maybe_print_labels(self): param = api.sysparam.get_string('LABEL_TEMPLATE_PATH') if not param: return if not yesno(_(u'Do you want to print the labels for the received products?'), gtk.RESPONSE_YES, _(u'Print labels'), _(u"Don't print")): return label_data = run_dialog(SkipLabelsEditor, self, self.store) if label_data: print_labels(label_data, self.store, receiving=self.model)
def _maybe_print_labels(self): param = api.sysparam.get_string('LABEL_TEMPLATE_PATH') if not param: return if not yesno(_(u'Do you want to print the labels for the received products?'), Gtk.ResponseType.YES, _(u'Print labels'), _(u"Don't print")): return label_data = run_dialog(SkipLabelsEditor, self, self.store) if label_data: print_labels(label_data, self.store, receiving=self.model)
def _maybe_print_labels(self): param = api.sysparam(self.store).LABEL_TEMPLATE_PATH if not param.path: return if not yesno(_(u'Do you want to print the labels for the received products?'), gtk.RESPONSE_YES, _(u'Print labels'), _(u"Don't print")): return label_data = run_dialog(SkipLabelsEditor, self, self.store) if label_data: print_labels(label_data, self.store, self.model.purchase)
def on_print_labels_clicked(self, button, parent_label_button=None): label_data = run_dialog(PrintLabelEditor, None, self.store, self.model.sellable) if label_data: print_labels(label_data, self.store)
def on_print_labels__clicked(self, button): label_data = run_dialog(SkipLabelsEditor, self, self.store) if label_data: print_labels(label_data, self.store, self.model)