Update id names in main.kv

This commit is contained in:
shekhar-cis 2022-08-29 20:59:14 +05:30
parent cdbe877d0e
commit d6356b596c
Signed by untrusted user: shekhar-cis
GPG Key ID: F4F00AB04E83F9A7
4 changed files with 9 additions and 9 deletions

View File

@ -159,8 +159,8 @@ class AddressBook(Screen, HelperAddressBook):
UPDATE addressbook UPDATE addressbook
SET label = ? SET label = ?
WHERE address = ?""", label, self.addbook_popup.content_cls.address) WHERE address = ?""", label, self.addbook_popup.content_cls.address)
App.get_running_app().root.ids.sc11.ids.ml.clear_widgets() App.get_running_app().root.ids.id_addressbook.ids.ml.clear_widgets()
App.get_running_app().root.ids.sc11.loadAddresslist(None, 'All', '') App.get_running_app().root.ids.id_addressbook.loadAddresslist(None, 'All', '')
self.addbook_popup.dismiss() self.addbook_popup.dismiss()
toast('Saved') toast('Saved')

View File

@ -79,7 +79,7 @@
if root.is_camara_attached(): app.set_screen('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.is_scanscreen.get_screen('composer')
MyMDTextField: MyMDTextField:
id: subject id: subject

View File

@ -154,7 +154,7 @@
size_hint: 1.5, None size_hint: 1.5, None
height: dp(40) height: dp(40)
on_press: app.set_screen('showqrcode') on_press: app.set_screen('showqrcode')
on_press: app.root.ids.sc15.qrdisplay(root, root.address) on_press: app.root.ids.id_showqrcode.qrdisplay(root, root.address)
MDLabel: MDLabel:
font_style: 'H6' font_style: 'H6'
text: app.tr._('Show QR code') text: app.tr._('Show QR code')

View File

@ -233,21 +233,21 @@ MDNavigationLayout:
MyAddress: MyAddress:
id:id_myaddress id:id_myaddress
AddressBook: AddressBook:
id:sc11 id:id_addressbook
Payment: Payment:
id:sc12 id:id_payment
NetworkStat: NetworkStat:
id:sc13 id:id_network
MailDetail: MailDetail:
id:sc14 id:sc14
ShowQRCode: ShowQRCode:
id:sc15 id:id_showqrcode
Draft: Draft:
id:sc16 id:sc16
Allmails: Allmails:
id:sc17 id:sc17
ScanScreen: ScanScreen:
id:sc23 id:is_scanscreen
MDNavigationDrawer: MDNavigationDrawer:
id: nav_drawer id: nav_drawer