Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #:kivy 1.1.0
- MyScreenManager:
- BRANCH:
- name: 'branch'
- MONOPHASIC:
- name: 'monophasic'
- BIPHASIC:
- name: 'biphasic'
- MONOPAD:
- name: 'monopad'
- BIPAD:
- name: 'bipad'
- <confirmPopup@Popup>
- title: 'Press Start When Ready'
- title_align: 'center'
- title_size: 20
- size_hint: (.6,.6)
- auto_dismiss: False
- seperator_height: 0
- border:(14,14,14,14)
- GridLayout:
- cols:2
- spacing:5
- size_hint: (.45,.35)
- Button:
- text: 'Cancel'
- font_size: 15
- on_release:
- root.dismiss()
- Button:
- text: 'Start'
- font_size: 15
- <BRANCH>
- canvas:
- Rectangle:
- pos: self.pos
- size: self.size
- source: 'background.png'
- GridLayout:
- cols:3
- rows:1
- spacing:10
- size_hint_x:.93
- size_hint_y:.15
- pos_hint:{'x':.04,'y':.05}
- Button:
- background_normal: 'button1.png'
- text: 'About'
- color: 0,0,0,1
- font_size: 15
- Button:
- background_normal: 'button1.png'
- text: 'Auto Test'
- color: 0,0,0,1
- font_size: 15
- Button:
- background_normal: 'button1.png'
- text: 'Shutdown'
- color: 0,0,0,1
- font_size: 15
- on_release:
- app.stop()
- GridLayout:
- cols: 1
- rows: 2
- spacing: 10
- size_hint_x: .47
- size_hint_y: .65
- pos_hint: {'x':.5,'y':.275}
- Button:
- background_normal: 'button1.png'
- text: "Monophasic"
- color: 0,0,0,1
- font_size: 20
- pos_hint: {"x": 0, 'y': .2}
- size_hint: (.5,.8)
- on_release:
- root.manager.transition.direction = 'left'
- root.manager.current = 'monophasic'
- Button:
- background_normal: 'button1.png'
- text: "Biphasic"
- color: 0,0,0,1
- font_size: 20
- pos_hint: {"x": .5, 'y': .2}
- size_hint: (.5,.8)
- on_release:
- root.manager.transition.direction = 'left'
- root.manager.current = 'biphasic'
- <MONOPHASIC>
- canvas:
- Rectangle:
- pos: self.pos
- size: self.size
- source: 'source3.png'
- GridLayout:
- cols:1
- spacing: 10
- size_hint_x: .3
- size_hint_y: .425
- pos_hint: {'x':.040,'y':.46}
- Button:
- text: 'Home'
- font_size: 20
- color: 0,0,0,1
- background_normal: 'button1.png'
- on_release:
- root.manager.transition.direction = 'right'
- root.manager.current = 'branch'
- Button:
- id: confirm
- text: 'Confirm'
- font_size: 20
- color: 0,0,0,1
- background_normal: 'button1.png'
- on_release:
- root.confirm()
- GridLayout:
- cols: 3
- rows: 1
- spacing: 10
- size_hint_x:.93
- size_hint_y:.15
- pos_hint:{'x':.04,'y':.225}
- Button:
- text: 'Voltage'
- font_size: 15
- color: 0,0,0,1
- background_normal: 'button1.png'
- Button:
- text: 'Rep'
- font_size: 15
- color: 0,0,0,1
- background_normal: 'button1.png'
- on_release:
- root.rep_on_release()
- root.manager.transition.direction = 'left'
- root.manager.current = 'monopad'
- Button:
- text: 't1'
- font_size: 15
- color: 0,0,0,1
- background_normal: 'button1.png'
- on_release:
- root.t1_on_release()
- root.manager.transition.direction = 'left'
- root.manager.current = 'monopad'
- GridLayout:
- cols:2
- rows:1
- spacing:10
- size_hint_x:.635
- size_hint_y:.15
- pos_hint:{'x':.185,'y':.05}
- Button:
- id: monoPolButton
- background_normal: 'button1.png'
- text: 'Polarity +'
- color: 0,0,0,1
- font_size: 15
- on_release:
- root.polarity()
- Button:
- background_normal: 'button1.png'
- text: 'Period'
- halign: 'left'
- color: 0,0,0,1
- font_size: 15
- on_release:
- root.per_on_release()
- root.manager.transition.direction = 'left'
- root.manager.current = 'monopad'
- <CustButton@Button>:
- background_normal: 'button1.png'
- color: 0,0,0,1
- size_hint_x: .2875
- size_hint_y: .1625
- <MONOPAD>
- txt: monoTextInput
- canvas:
- Rectangle:
- pos: self.pos
- size: self.size
- source:'background.jpg'
- FloatLayout:
- FloatLayout:
- TextInput:
- id: monoTextInput
- font_size: 20
- size_hint_x: .55
- size_hint_y: .15
- pos_hint: {'x': .07,'y': .825}
- CustButton:
- text: 'Backspace'
- pos_hint: {'x': .6625, 'y':.82}
- on_release:
- root.test()
- GridLayout:
- cols: 3
- rows: 4
- spacing: 10
- pos_hint: {'x': .05,'y': .05}
- size_hint: (.9,.75)
- CustButton:
- text: '1'
- on_release: monoTextInput.text += self.text
- CustButton:
- text: '2'
- on_release: monoTextInput.text += self.text
- CustButton:
- text: '3'
- on_release: monoTextInput.text += self.text
- CustButton:
- text: '4'
- on_release: monoTextInput.text += self.text
- CustButton:
- text: '5'
- on_release: monoTextInput.text += self.text
- CustButton:
- text: '6'
- on_release: monoTextInput.text += self.text
- CustButton:
- text: '7'
- on_release: monoTextInput.text += self.text
- CustButton:
- text: '8'
- on_release: monoTextInput.text += self.text
- CustButton:
- text: '9'
- on_release: monoTextInput.text += self.text
- CustButton:
- text: 'Back'
- on_release:
- root.manager.transition.direction = 'right'
- root.manager.current = root.currentPage()
- CustButton:
- text: '0'
- on_release: monoTextInput.text+= self.text
- CustButton:
- text: 'Enter'
- on_release:
- root.manager.transition.direction = 'right'
- root.inputText()
- root.manager.current = root.currentPage()
- <BIPHASIC>
- canvas:
- Rectangle:
- pos: self.pos
- size: self.size
- source:'source4.png'
- GridLayout:
- cols:1
- spacing: 10
- size_hint_x: .3
- size_hint_y: .425
- pos_hint: {'x':.040,'y':.46}
- Button:
- text: 'Home'
- font_size: 20
- color: 0,0,0,1
- background_normal: 'button1.png'
- on_release:
- root.manager.transition.direction = 'right'
- root.manager.current = 'branch'
- Button:
- id: confirm
- text: 'Confirm'
- font_size: 20
- color: 0,0,0,1
- background_normal: 'button1.png'
- on_release:
- root.backspace()
- GridLayout:
- cols: 3
- rows: 1
- spacing: 10
- size_hint_x:.93
- size_hint_y:.15
- pos_hint:{'x':.04,'y':.225}
- Button:
- text: 'Voltage'
- font_size: 15
- color: 0,0,0,1
- background_normal: 'button1.png'
- Button:
- text: 'Rep'
- font_size: 15
- color: 0,0,0,1
- background_normal: 'button1.png'
- on_release:
- root.rep_on_release()
- root.manager.transition.direction = 'left'
- root.manager.current = 'bipad'
- Button:
- text: 't1'
- font_size: 15
- color: 0,0,0,1
- background_normal: 'button1.png'
- on_release:
- root.t1_on_release()
- root.manager.transition.direction = 'left'
- root.manager.current = 'bipad'
- GridLayout:
- cols:3
- rows:1
- spacing:10
- size_hint_x:.93
- size_hint_y:.15
- pos_hint:{'x':.04,'y':.05}
- Button:
- id: biPolButton
- background_normal: 'button1.png'
- text: 'Polarity +'
- color: 0,0,0,1
- font_size: 15
- on_release:
- root.polarity()
- Button:
- background_normal: 'button1.png'
- text: 'Period'
- color: 0,0,0,1
- font_size: 15
- on_release:
- root.per_on_release()
- root.manager.transition.direction = 'left'
- root.manager.current = 'bipad'
- Button:
- background_normal: 'button1.png'
- text: 't2'
- color: 0,0,0,1
- font_size: 15
- <BIPAD>
- canvas:
- Rectangle:
- pos: self.pos
- size: self.size
- source:'background.jpg'
- FloatLayout:
- TextInput:
- id: biTextInput
- font_size: 20
- size_hint_x: .55
- size_hint_y: .15
- pos_hint: {'x': .07,'y': .825}
- CustButton:
- text: 'Backspace'
- pos_hint: {'x': .6625, 'y':.82}
- on_release:
- GridLayout:
- cols: 3
- rows: 4
- spacing: 10
- pos_hint: {'x': .05,'y': .05}
- size_hint: (.9,.75)
- CustButton:
- text: '1'
- CustButton:
- text: '2'
- CustButton:
- text: '3'
- CustButton:
- text: '4'
- CustButton:
- text: '5'
- CustButton:
- text: '6'
- CustButton:
- text: '7'
- CustButton:
- text: '8'
- CustButton:
- text: '9'
- CustButton:
- text: 'Back'
- on_release:
- root.backspace()
- CustButton:
- text: '0'
- CustButton:
- text: 'Enter'
- on_release:
- root.manager.transition.direction = 'right'
- root.inputText()
- root.manager.current = root.currentPage()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement