raiseBaseException("\n".join([_("Cannot start QR scanner."),_("The zbar package is not available."),_("On Linux, try 'sudo apt-get install python-zbar'")]))
ifprocisNone:
device=config.get("video_device","default")
ifdevice=='default':
device=''
globalproc
proc=zbar.Processor()
proc.init(video_device=device)
defscan_qr(self):
ifnotzbar:
raiseBaseException("\n".join([_("Cannot start QR scanner."),_("The zbar package is not available."),_("On Linux, try 'sudo apt-get install python-zbar'")]))