Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- from kivymd.app import MDApp
- from kivy.lang import Builder
- from kivymd.uix.screen import MDScreen
- from kivy.uix.screenmanager import ScreenManager
- from kivy.core.window import Window
- KV=('''
- <REGITRATION_Window>:
- name:'regitration_window1'
- FloatLayout:
- BoxLayout:
- orientation: 'vertical'
- MDToolbar:
- title: 'Registration'
- elevation: 10
- left_action_items: [['arrow-left', lambda x: app.change_screen('login_window1')]]
- size_hint_y:None
- ScrollView:
- on_scroll_stop: False
- bar_color:(0,0,255, 0.4)
- bar_inactiv_color:(0, 0, 0.7, 0.4)
- bar_margin:2
- bar_width:25
- do_scroll_x:True
- do_scroll_y:True
- scroll_type:['bars','content']
- MDList:
- size_hint:0.9,0.1
- padding:'20dp'
- MDLabel:
- text: 'Full Name'
- font_size: '15sp'
- height: self.texture_size[1] + dp(10)
- size_hint_y:None
- MDTextFieldRound:
- hint_text: 'For Eg:- xxx yyy zzz'
- input_type:'text'
- size_hint_y:None
- MDLabel:
- text:'Email-ID'
- font_size: '15sp'
- height: self.texture_size[1] + dp(10)
- size_hint_y:None
- MDTextFieldRound:
- hint_text: 'For Eg:- [email protected]'
- input_type:'text'
- size_hint_y:None
- BoxLayout:
- orientation :'horizontal'
- size_hint_y:None
- size: self.size
- spacing:'-40dp'
- BoxLayout:
- orientation :'vertical'
- spacing:'-50dp'
- MDLabel:
- text: 'Country Code '
- font_size: '15sp'
- height: self.texture_size[1] + dp(10)
- MDTextFieldRound:
- hint_text: 'For Eg:- +91'
- input_type:'number'
- size_hint:0.5,0.25
- BoxLayout:
- orientation :'vertical'
- size_hint_y:None
- spacing:'-50dp'
- MDLabel:
- text: 'Mobile Number'
- font_size: '15sp'
- height: self.texture_size[1] + dp(10)
- MDTextFieldRound:
- hint_text: 'For Eg:- 987654321'
- input_type:'number'
- size_hint:1,0.25
- MDLabel:
- text: 'Location'
- font_size: '15sp'
- height: self.texture_size[1] + dp(10)
- size_hint_y:None
- MDTextFieldRound:
- hint_text: 'For Eg:- kalyan'
- input_type:'text'
- size_hint_y:None
- MDLabel:
- text: 'Pin Code'
- font_size: '15sp'
- height: self.texture_size[1] + dp(10)
- size_hint_y:None
- MDTextFieldRound:
- hint_text: 'For Eg:- 400050'
- input_type:'number'
- size_hint_y:None
- MDLabel:
- text: 'City/Town/Village'
- font_size: '15sp'
- height: self.texture_size[1] + dp(10)
- size_hint_y:None
- MDTextFieldRound:
- hint_text: 'For Eg:- Mumbai'
- input_type:'text'
- size_hint_y:None
- MDLabel:
- text: 'District/Taluka'
- font_size: '15sp'
- height: self.texture_size[1] + dp(10)
- size_hint_y:None
- MDTextFieldRound:
- hint_text: 'For Eg:- Mumbai'
- input_type:'text'
- size_hint_y:None
- MDLabel:
- text: 'State'
- font_size: '15sp'
- height: self.texture_size[1] + dp(10)
- size_hint_y:None
- MDTextFieldRound:
- hint_text: 'For Eg:- Maharashtra'
- input_type:'text'
- size_hint_y:None
- MDLabel:
- text: 'Country'
- font_size: '15sp'
- height: self.texture_size[1] + dp(10)
- size_hint_y:None
- MDTextFieldRound:
- hint_text: 'For Eg:- India'
- input_type:'text'
- size_hint_y:None
- MDLabel:
- text: 'Password'
- font_size: '15sp'
- height: self.texture_size[1] + dp(10)
- size_hint_y:None
- MDTextFieldRound:
- id: field_password
- max_characters: 70
- hint_text: 'For Eg:- Chennai@123'
- MDLabel:
- id: is_vallidPS
- #text: 'Vallidation'
- font_size: '7sp'
- height: self.texture_size[1] + dp(10)
- size_hint_y:None
- MDLabel:
- text: 'Confirm Password'
- font_size: '15sp'
- height: self.texture_size[1] + dp(10)
- size_hint_y:None
- MDTextFieldRound:
- mode: "rectangle"
- id: field_confirmpassword
- max_characters: 70
- hint_text: 'For Eg:- Chennai@123'
- password: True
- size_hint_y:None
- MDLabel:
- id: is_vallidCP
- #text: 'Vallidation'
- font_size: '7sp'
- height: self.texture_size[1] + dp(10)
- size_hint_y:None
- MDBoxLayout:
- orientation :'horizontal'
- padding: '20dp'
- spacing: '50dp'
- halign:'center'
- valign:'center'
- size_hint_y:None
- MDLabel:
- MDFillRoundFlatButton:
- text:'REGISTER'
- on_press: app.vall()
- MDFillRoundFlatButton:
- text:'Cancel'
- MDLabel:
- WindowManager:
- REGITRATION_Window:
- ''')
- class REGITRATION_Window(MDScreen):
- pass
- class WindowManager(ScreenManager):
- pass
- class MainApp(MDApp):
- def build(self):
- return Builder.load_string(KV)
- if __name__ == '__main__':
- MainApp().run()
Advertisement
Add Comment
Please, Sign In to add comment