def run_printdlg(self, win, printout): if not self.filepath: doc_file = 'print' doc_file = os.path.join(config.print_dir, doc_file) self.filepath = get_save_file_name(win, None, doc_file, _('Select output file'), path_only=True, file_types=[self.get_file_type(), ]) if not self.filepath: return False return AbstractPrinter.run_printdlg(self, win, printout)
def run_printdlg(self, win, printout): if not self.filepath: doc_file = 'print' doc_file = os.path.join(config.print_dir, doc_file) msg = _('Select output file') file_types = [self.get_file_type(), ] self.filepath = get_save_file_name(win, doc_file, msg, path_only=True, file_types=file_types) if not self.filepath: return False return AbstractPrinter.run_printdlg(self, win, printout)
def __init__(self, connection, cups_name, details): self.connection = connection self.cups_name = cups_name self.details = details self.update_attrs() AbstractPrinter.__init__(self)
def __init__(self, app, name=_('Default printer')): self.app = app self.name = name AbstractPrinter.__init__(self)
def __init__(self, app, name=_('Default printer')): self.app = app self.name = name AbstractPrinter.__init__(self)
def __init__(self, connection, cups_name, details): self.connection = connection self.cups_name = cups_name self.details = details self.update_attrs() AbstractPrinter.__init__(self)