Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.19 KB | None | 0 0
  1. #:kivy 1.1.0
  2.  
  3. MyScreenManager:
  4.  
  5. BRANCH:
  6. name: 'branch'
  7. MONOPHASIC:
  8. name: 'monophasic'
  9. BIPHASIC:
  10. name: 'biphasic'
  11. MONOPAD:
  12. name: 'monopad'
  13. BIPAD:
  14. name: 'bipad'
  15.  
  16. <confirmPopup@Popup>
  17. title: 'Press Start When Ready'
  18. title_align: 'center'
  19. title_size: 20
  20. size_hint: (.6,.6)
  21. auto_dismiss: False
  22. seperator_height: 0
  23. border:(14,14,14,14)
  24.  
  25. GridLayout:
  26. cols:2
  27. spacing:5
  28. size_hint: (.45,.35)
  29. Button:
  30. text: 'Cancel'
  31. font_size: 15
  32. on_release:
  33. root.dismiss()
  34. Button:
  35. text: 'Start'
  36. font_size: 15
  37.  
  38.  
  39.  
  40.  
  41. <BRANCH>
  42. canvas:
  43. Rectangle:
  44. pos: self.pos
  45. size: self.size
  46. source: 'background.png'
  47. GridLayout:
  48. cols:3
  49. rows:1
  50. spacing:10
  51. size_hint_x:.93
  52. size_hint_y:.15
  53. pos_hint:{'x':.04,'y':.05}
  54. Button:
  55. background_normal: 'button1.png'
  56. text: 'About'
  57. color: 0,0,0,1
  58. font_size: 15
  59.  
  60. Button:
  61. background_normal: 'button1.png'
  62. text: 'Auto Test'
  63. color: 0,0,0,1
  64. font_size: 15
  65. Button:
  66. background_normal: 'button1.png'
  67. text: 'Shutdown'
  68. color: 0,0,0,1
  69. font_size: 15
  70. on_release:
  71. app.stop()
  72. GridLayout:
  73. cols: 1
  74. rows: 2
  75. spacing: 10
  76. size_hint_x: .47
  77. size_hint_y: .65
  78. pos_hint: {'x':.5,'y':.275}
  79. Button:
  80. background_normal: 'button1.png'
  81. text: "Monophasic"
  82. color: 0,0,0,1
  83. font_size: 20
  84. pos_hint: {"x": 0, 'y': .2}
  85. size_hint: (.5,.8)
  86. on_release:
  87. root.manager.transition.direction = 'left'
  88. root.manager.current = 'monophasic'
  89. Button:
  90. background_normal: 'button1.png'
  91. text: "Biphasic"
  92. color: 0,0,0,1
  93. font_size: 20
  94. pos_hint: {"x": .5, 'y': .2}
  95. size_hint: (.5,.8)
  96. on_release:
  97. root.manager.transition.direction = 'left'
  98. root.manager.current = 'biphasic'
  99. <MONOPHASIC>
  100.  
  101. canvas:
  102. Rectangle:
  103. pos: self.pos
  104. size: self.size
  105. source: 'source3.png'
  106.  
  107.  
  108. GridLayout:
  109. cols:1
  110. spacing: 10
  111. size_hint_x: .3
  112. size_hint_y: .425
  113. pos_hint: {'x':.040,'y':.46}
  114. Button:
  115. text: 'Home'
  116. font_size: 20
  117. color: 0,0,0,1
  118. background_normal: 'button1.png'
  119. on_release:
  120. root.manager.transition.direction = 'right'
  121. root.manager.current = 'branch'
  122. Button:
  123. id: confirm
  124. text: 'Confirm'
  125. font_size: 20
  126. color: 0,0,0,1
  127. background_normal: 'button1.png'
  128. on_release:
  129. root.confirm()
  130.  
  131.  
  132. GridLayout:
  133. cols: 3
  134. rows: 1
  135. spacing: 10
  136. size_hint_x:.93
  137. size_hint_y:.15
  138. pos_hint:{'x':.04,'y':.225}
  139. Button:
  140. text: 'Voltage'
  141. font_size: 15
  142. color: 0,0,0,1
  143. background_normal: 'button1.png'
  144. Button:
  145. text: 'Rep'
  146. font_size: 15
  147. color: 0,0,0,1
  148. background_normal: 'button1.png'
  149. on_release:
  150. root.rep_on_release()
  151. root.manager.transition.direction = 'left'
  152. root.manager.current = 'monopad'
  153. Button:
  154. text: 't1'
  155. font_size: 15
  156. color: 0,0,0,1
  157. background_normal: 'button1.png'
  158. on_release:
  159. root.t1_on_release()
  160. root.manager.transition.direction = 'left'
  161. root.manager.current = 'monopad'
  162. GridLayout:
  163. cols:2
  164. rows:1
  165. spacing:10
  166. size_hint_x:.635
  167. size_hint_y:.15
  168. pos_hint:{'x':.185,'y':.05}
  169. Button:
  170. id: monoPolButton
  171. background_normal: 'button1.png'
  172. text: 'Polarity +'
  173. color: 0,0,0,1
  174. font_size: 15
  175. on_release:
  176. root.polarity()
  177.  
  178. Button:
  179. background_normal: 'button1.png'
  180. text: 'Period'
  181. halign: 'left'
  182. color: 0,0,0,1
  183. font_size: 15
  184. on_release:
  185. root.per_on_release()
  186. root.manager.transition.direction = 'left'
  187. root.manager.current = 'monopad'
  188. <CustButton@Button>:
  189. background_normal: 'button1.png'
  190. color: 0,0,0,1
  191. size_hint_x: .2875
  192. size_hint_y: .1625
  193.  
  194. <MONOPAD>
  195. txt: monoTextInput
  196. canvas:
  197. Rectangle:
  198. pos: self.pos
  199. size: self.size
  200. source:'background.jpg'
  201. FloatLayout:
  202. FloatLayout:
  203. TextInput:
  204. id: monoTextInput
  205. font_size: 20
  206. size_hint_x: .55
  207. size_hint_y: .15
  208. pos_hint: {'x': .07,'y': .825}
  209. CustButton:
  210. text: 'Backspace'
  211. pos_hint: {'x': .6625, 'y':.82}
  212. on_release:
  213.  
  214. root.test()
  215. GridLayout:
  216. cols: 3
  217. rows: 4
  218. spacing: 10
  219. pos_hint: {'x': .05,'y': .05}
  220. size_hint: (.9,.75)
  221.  
  222. CustButton:
  223. text: '1'
  224. on_release: monoTextInput.text += self.text
  225. CustButton:
  226. text: '2'
  227. on_release: monoTextInput.text += self.text
  228. CustButton:
  229. text: '3'
  230. on_release: monoTextInput.text += self.text
  231. CustButton:
  232. text: '4'
  233. on_release: monoTextInput.text += self.text
  234. CustButton:
  235. text: '5'
  236. on_release: monoTextInput.text += self.text
  237. CustButton:
  238. text: '6'
  239. on_release: monoTextInput.text += self.text
  240. CustButton:
  241. text: '7'
  242. on_release: monoTextInput.text += self.text
  243. CustButton:
  244. text: '8'
  245. on_release: monoTextInput.text += self.text
  246. CustButton:
  247. text: '9'
  248. on_release: monoTextInput.text += self.text
  249. CustButton:
  250. text: 'Back'
  251. on_release:
  252. root.manager.transition.direction = 'right'
  253. root.manager.current = root.currentPage()
  254. CustButton:
  255. text: '0'
  256. on_release: monoTextInput.text+= self.text
  257. CustButton:
  258. text: 'Enter'
  259. on_release:
  260. root.manager.transition.direction = 'right'
  261. root.inputText()
  262. root.manager.current = root.currentPage()
  263.  
  264.  
  265.  
  266. <BIPHASIC>
  267. canvas:
  268. Rectangle:
  269. pos: self.pos
  270. size: self.size
  271. source:'source4.png'
  272.  
  273.  
  274.  
  275.  
  276. GridLayout:
  277. cols:1
  278. spacing: 10
  279. size_hint_x: .3
  280. size_hint_y: .425
  281. pos_hint: {'x':.040,'y':.46}
  282. Button:
  283. text: 'Home'
  284. font_size: 20
  285. color: 0,0,0,1
  286. background_normal: 'button1.png'
  287. on_release:
  288. root.manager.transition.direction = 'right'
  289. root.manager.current = 'branch'
  290. Button:
  291. id: confirm
  292. text: 'Confirm'
  293. font_size: 20
  294. color: 0,0,0,1
  295. background_normal: 'button1.png'
  296. on_release:
  297. root.backspace()
  298.  
  299.  
  300. GridLayout:
  301. cols: 3
  302. rows: 1
  303. spacing: 10
  304. size_hint_x:.93
  305. size_hint_y:.15
  306. pos_hint:{'x':.04,'y':.225}
  307. Button:
  308. text: 'Voltage'
  309. font_size: 15
  310. color: 0,0,0,1
  311. background_normal: 'button1.png'
  312. Button:
  313. text: 'Rep'
  314. font_size: 15
  315. color: 0,0,0,1
  316. background_normal: 'button1.png'
  317. on_release:
  318. root.rep_on_release()
  319. root.manager.transition.direction = 'left'
  320. root.manager.current = 'bipad'
  321. Button:
  322. text: 't1'
  323. font_size: 15
  324. color: 0,0,0,1
  325. background_normal: 'button1.png'
  326. on_release:
  327. root.t1_on_release()
  328. root.manager.transition.direction = 'left'
  329. root.manager.current = 'bipad'
  330. GridLayout:
  331. cols:3
  332. rows:1
  333. spacing:10
  334. size_hint_x:.93
  335. size_hint_y:.15
  336. pos_hint:{'x':.04,'y':.05}
  337. Button:
  338. id: biPolButton
  339. background_normal: 'button1.png'
  340. text: 'Polarity +'
  341. color: 0,0,0,1
  342. font_size: 15
  343. on_release:
  344. root.polarity()
  345.  
  346. Button:
  347. background_normal: 'button1.png'
  348. text: 'Period'
  349. color: 0,0,0,1
  350. font_size: 15
  351. on_release:
  352. root.per_on_release()
  353. root.manager.transition.direction = 'left'
  354. root.manager.current = 'bipad'
  355. Button:
  356. background_normal: 'button1.png'
  357. text: 't2'
  358. color: 0,0,0,1
  359. font_size: 15
  360. <BIPAD>
  361. canvas:
  362. Rectangle:
  363. pos: self.pos
  364. size: self.size
  365. source:'background.jpg'
  366.  
  367.  
  368. FloatLayout:
  369. TextInput:
  370. id: biTextInput
  371. font_size: 20
  372. size_hint_x: .55
  373. size_hint_y: .15
  374. pos_hint: {'x': .07,'y': .825}
  375. CustButton:
  376. text: 'Backspace'
  377. pos_hint: {'x': .6625, 'y':.82}
  378. on_release:
  379.  
  380. GridLayout:
  381. cols: 3
  382. rows: 4
  383. spacing: 10
  384. pos_hint: {'x': .05,'y': .05}
  385. size_hint: (.9,.75)
  386.  
  387. CustButton:
  388. text: '1'
  389. CustButton:
  390. text: '2'
  391. CustButton:
  392. text: '3'
  393. CustButton:
  394. text: '4'
  395. CustButton:
  396. text: '5'
  397. CustButton:
  398. text: '6'
  399. CustButton:
  400. text: '7'
  401. CustButton:
  402. text: '8'
  403. CustButton:
  404. text: '9'
  405. CustButton:
  406. text: 'Back'
  407. on_release:
  408. root.backspace()
  409. CustButton:
  410. text: '0'
  411. CustButton:
  412. text: 'Enter'
  413. on_release:
  414. root.manager.transition.direction = 'right'
  415. root.inputText()
  416. root.manager.current = root.currentPage()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement