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