Refactor kivy screens[Method for set the dynamic screens]
This commit is contained in:
parent
f88d70c275
commit
5cb7b51b30
|
@ -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()
|
||||
|
||||
|
||||
|
|
|
@ -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')
|
|
@ -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()
|
||||
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -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'
|
||||
|
|
Reference in New Issue
Block a user