def setDefaultPrinter(printer_name): if PY3: printer_name = str(printer_name, "utf-8") setPasswordPrompt( "You do not have permission to set the default printer. You need authentication." ) return cupsext.setDefaultPrinter(printer_name)
def setDefaultPrinter(printer_name): setPasswordPrompt("You do not have permission to set the default printer.") return cupsext.setDefaultPrinter(printer_name)