Refactor kivy screens[Method for set the dynamic screens]

This commit is contained in:
shekhar-cis 2022-03-11 14:54:26 +05:30
parent f88d70c275
commit 5cb7b51b30
Signed by untrusted user: shekhar-cis
GPG Key ID: F4F00AB04E83F9A7
5 changed files with 5 additions and 5 deletions

View File

@ -40,7 +40,7 @@
opposite_colors: True
elevation_normal: 8
md_bg_color: [0.941, 0, 0,1]
on_press: app.root.ids.scr_mngr.current = 'create'
on_press: app.set_screen('create')
on_press: app.clear_composer()

View File

@ -25,4 +25,4 @@
MDRaisedButton:
height: dp(38)
text: app.tr._("+Add more credits")
on_press: app.root.ids.scr_mngr.current = 'payment'
on_press: app.set_screen('payment')

View File

@ -80,7 +80,7 @@
icon: "chevron-double-right"
text: app.tr._("Proceed Next")
on_release:
app.root.ids.scr_mngr.current = 'random'
app.set_screen('random')
on_press:
app.root.ids.sc7.reset_address_label()

View File

@ -76,7 +76,7 @@
icon: 'qrcode-scan'
pos_hint: {'center_x': 0.95, 'y': 0.6}
on_release:
if root.is_camara_attached(): app.root.ids.scr_mngr.current = 'scanscreen'
if root.is_camara_attached(): app.set_screen('scanscreen')
else: root.camera_alert()
on_press:
app.root.ids.sc23.get_screen('composer')

View File

@ -153,7 +153,7 @@
MDRaisedButton:
size_hint: 1.5, None
height: dp(40)
on_press: app.root.ids.scr_mngr.current = 'showqrcode'
on_press: app.set_screen('showqrcode')
on_press: app.root.ids.sc15.qrdisplay(root, root.address)
MDLabel:
font_style: 'H6'