rename kivy_garden to qr_scanner
This commit is contained in:
parent
41064d8929
commit
baf423e116
|
@ -2,6 +2,7 @@ import state
|
|||
from bitmessagekivy.baseclass.common import toast
|
||||
from kivy.uix.screenmanager import Screen
|
||||
from kivy.properties import StringProperty
|
||||
from kivy_garden.qrcode import QRCodeWidget
|
||||
|
||||
|
||||
class ShowQRCode(Screen):
|
||||
|
@ -12,10 +13,6 @@ class ShowQRCode(Screen):
|
|||
"""Method used for showing QR Code"""
|
||||
self.ids.qr.clear_widgets()
|
||||
state.kivyapp.set_toolbar_for_QrCode()
|
||||
try:
|
||||
from kivy.garden.qrcode import QRCodeWidget
|
||||
except Exception:
|
||||
from kivy_garden.qrcode import QRCodeWidget
|
||||
self.address = address
|
||||
self.ids.qr.add_widget(QRCodeWidget(data=address))
|
||||
self.ids.qr.children[0].show_border = False
|
||||
|
|
|
@ -58,7 +58,7 @@ import ast
|
|||
|
||||
from bitmessagekivy.baseclass.common import toast
|
||||
|
||||
from kivy_garden.zbarcam import ZBarCam
|
||||
from qr_scanner.zbarcam import ZBarCam
|
||||
from pyzbar.pyzbar import ZBarSymbol
|
||||
|
||||
if platform != "android":
|
||||
|
|
|
@ -3,7 +3,7 @@ from kivy.app import App
|
|||
from kivy.lang import Builder
|
||||
|
||||
kv = """
|
||||
#:import XCamera kivy_garden.xcamera.XCamera
|
||||
#:import XCamera qr_scanner.xcamera.XCamera
|
||||
|
||||
FloatLayout:
|
||||
orientation: 'vertical'
|
|
@ -1,4 +1,4 @@
|
|||
#:import xcamera kivy_garden.xcamera.xcamera
|
||||
#:import xcamera qr_scanner.xcamera.xcamera
|
||||
|
||||
<XCameraIconButton>
|
||||
icon_color: (0, 0, 0, 1)
|
|
@ -1,5 +1,5 @@
|
|||
#:import XCamera kivy_garden.xcamera.XCamera
|
||||
#:import is_android kivy_garden.zbarcam.utils.is_android
|
||||
#:import XCamera qr_scanner.xcamera.XCamera
|
||||
#:import is_android qr_scanner.zbarcam.utils.is_android
|
||||
<ZBarCam>:
|
||||
Widget:
|
||||
# invert width/height on rotated Android
|
Reference in New Issue
Block a user