Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #:kivy 1.11.1
- MyScreenManager:
- DATA:
- name: 'data'
- <DATA>
- search_text_input:search_text_input
- search_text:search_text_input.text
- FloatLayout:
- TextInput:
- id:search_text_input
- multiline : False
- pos_hint: {'top':.9515,'x':.35}
- size_hint: .6,.1
- Button:
- text:'Reset Search'
- pos_hint: {'top':.9515,'x':.05}
- size_hint: .25,.1
- on_release:
- root.reset_search()
- Button:
- text: "Back"
- pos_hint: {'x':.05,'y':.05}
- size_hint: .25,.1
- on_release:
- root.manager.transition.direction = 'right'
- root.manager.current = 'welcome'
- BoxLayout:
- orientation:'vertical'
- pos_hint: {'x': .05, 'top': .75}
- size_hint: .25,.2
- Button:
- text: 'Box'
- on_release:
- root.get_boxes()
- Button:
- text: 'Contact'
- on_release:
- root.get_contacts()
- Button:
- text: 'New Entry'
- on_release:
- root.new_entry()
- <newEntry>:
- auto_dismiss: False
- title: ""
- separator_height: 0
- pos_hint: {'x':0,'y':.5}
- size_hint: 1,.5
- FloatLayout:
- MyTextInput:
- id: box
- pos_hint:{'x':.085,'y':.8}
- size_hint: .1,.15
- hint_text: "**req**"
- MyTextInput:
- id: reagentName
- pos_hint:{'x':.2,'y':.6}
- size_hint:.25,.15
- hint_text: '**required**'
- MyTextInput:
- id: contact
- pos_hint:{'x':.2,'y':.4}
- size_hint:.25,.15
- hint_text: '**required**'
- MyTextInput:
- id: number
- pos_hint:{'x':.3,'y':.8}
- size_hint: .15,.15
- hint_text: '**required**'
- Label:
- pos_hint:{'x':-.45,'y':.375}
- text: 'BOX:'
- Label:
- pos_hint:{'x':-.25,'y':.375}
- text: 'NUMBER:'
- Label:
- pos_hint:{'x':-.395,'y':.175}
- text: 'REAGENT NAME:'
- Label:
- pos_hint:{'x':-.4245,'y':-.025}
- text: 'CONTACT:'
- BoxLayout:
- orientation: 'vertical'
- size_hint: .4,.5
- spacing: '20dp'
- pos_hint: {'x':.55,'y':.425}
- Button:
- text:'Note 1'
- Button:
- text:'Note 2'
- BoxLayout:
- orientation: 'horizontal'
- size_hint: 1,.15
- pos_hint: {'x':0,'y':.01}
- Button:
- text: 'Close'
- on_release:
- root.dismiss()
- Button:
- text: 'Submit'
- on_release:
- root.submit()
- <SelectableButton>:
- # Draw a background to indicate selection
- canvas.before:
- Color:
- rgba: (.0, 0.9, .1, .3) if self.selected else (0, 0, 0, 1)
- Rectangle:
- pos: self.pos
- size: self.size
- <RV>:
- BoxLayout:
- orientation: "vertical"
- GridLayout:
- size_hint: 1, None
- size_hint_y: None
- height: 25
- cols: 2
- BoxLayout:
- RecycleView:
- id: rv
- viewclass: 'SelectableButton'
- data: [{'text': str(x)} for x in root.data_items]
- SelectableRecycleGridLayout:
- cols: 2
- default_size: None, dp(26)
- default_size_hint: 1, None
- size_hint_y: None
- height: self.minimum_height
- orientation: 'vertical'
- multiselect: True
- touch_multiselect: True
- on_touch_down:
- root.selectable_button_function()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement