1
0
This commit is contained in:
SomberNight
2018-09-17 14:44:01 +02:00
parent aee2d8e120
commit e5e3ac0364
8 changed files with 18 additions and 103 deletions

View File

@@ -1,3 +1,6 @@
from kivy.uix.widget import Widget
from kivy.properties import ObjectProperty
__all__ = ('NFCBase', 'NFCScanner')
class NFCBase(Widget):

View File

@@ -117,8 +117,8 @@ class ScannerAndroid(NFCBase):
recTypes = []
for record in ndefrecords:
recTypes.append({
'type': ''.join(map(unichr, record.getType())),
'payload': ''.join(map(unichr, record.getPayload()))
'type': ''.join(map(chr, record.getType())),
'payload': ''.join(map(chr, record.getPayload()))
})
details['recTypes'] = recTypes

View File

@@ -3,6 +3,7 @@
from . import NFCBase
from kivy.clock import Clock
from kivy.logger import Logger
from kivy.app import App
class ScannerDummy(NFCBase):
'''This is the dummy interface that gets selected in case any other