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 opposite_colors: True
elevation_normal: 8 elevation_normal: 8
md_bg_color: [0.941, 0, 0,1] 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() on_press: app.clear_composer()

View File

@ -25,4 +25,4 @@
MDRaisedButton: MDRaisedButton:
height: dp(38) height: dp(38)
text: app.tr._("+Add more credits") 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" icon: "chevron-double-right"
text: app.tr._("Proceed Next") text: app.tr._("Proceed Next")
on_release: on_release:
app.root.ids.scr_mngr.current = 'random' app.set_screen('random')
on_press: on_press:
app.root.ids.sc7.reset_address_label() app.root.ids.sc7.reset_address_label()

View File

@ -76,7 +76,7 @@
icon: 'qrcode-scan' icon: 'qrcode-scan'
pos_hint: {'center_x': 0.95, 'y': 0.6} pos_hint: {'center_x': 0.95, 'y': 0.6}
on_release: 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() else: root.camera_alert()
on_press: on_press:
app.root.ids.sc23.get_screen('composer') app.root.ids.sc23.get_screen('composer')

View File

@ -153,7 +153,7 @@
MDRaisedButton: MDRaisedButton:
size_hint: 1.5, None size_hint: 1.5, None
height: dp(40) 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) on_press: app.root.ids.sc15.qrdisplay(root, root.address)
MDLabel: MDLabel:
font_style: 'H6' font_style: 'H6'