follow up b8c7edf070
This commit is contained in:
parent
02cd5497eb
commit
7cf075c754
|
@ -61,7 +61,6 @@ class ScanQRTextEdit(ButtonsTextEdit, MessageBoxMixin):
|
||||||
except BaseException as e:
|
except BaseException as e:
|
||||||
self.show_error(str(e))
|
self.show_error(str(e))
|
||||||
data = ''
|
data = ''
|
||||||
data = str(data)
|
|
||||||
self.setText(data)
|
self.setText(data)
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
|
|
@ -62,7 +62,7 @@ def scan_barcode(device='', timeout=-1, display=True, threaded=False):
|
||||||
return
|
return
|
||||||
symbol = libzbar.zbar_symbol_set_first_symbol(symbols)
|
symbol = libzbar.zbar_symbol_set_first_symbol(symbols)
|
||||||
data = libzbar.zbar_symbol_get_data(symbol)
|
data = libzbar.zbar_symbol_get_data(symbol)
|
||||||
return data
|
return data.decode('utf8')
|
||||||
|
|
||||||
def _find_system_cameras():
|
def _find_system_cameras():
|
||||||
device_root = "/sys/class/video4linux"
|
device_root = "/sys/class/video4linux"
|
||||||
|
|
Loading…
Reference in New Issue