2n2u

Untitled

Nov 1st, 2015
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.54 KB | None | 0 0
  1. #:import KIVY_DEFAULT_FONT settings.KIVY_DEFAULT_FONT
  2. #: import Graph kivy.garden.graph.Graph
  3. #: import MeshLinePlot kivy.garden.graph.MeshLinePlot
  4. <Label>:
  5.     font_name: 'RobotoCondensed'
  6.     color: 0.160, 0.501, 0.725, 1
  7.  
  8. <RecordForm@BoxLayout>: #
  9.     orientation: "vertical"
  10.     b_record: btnrecord
  11.     p_bar: pb
  12.     #r: r
  13.     g_layout: graphlayout
  14. #    Recorder:
  15. #        id: r
  16. #        size_hint:(None, None)
  17. #        size: (0,0)
  18. #        rform: graphlayout
  19.     AnchorLayout:
  20.         height: "40dp" #
  21.         size_hint_y: None
  22.         anchor_x: 'center'
  23.         anchor_y: 'top'
  24.         Label:
  25.             text: "Patient's Name"
  26.     AnchorLayout:
  27.         height: "60dp" #
  28.         size_hint_y: None
  29.     AnchorLayout:
  30.         height: "40dp" #
  31.         size_hint_y: None
  32.         anchor_x: 'center'
  33.         Button:
  34.             id: btnrecord
  35.             text: "Record"
  36.             size_hint_x: 0.25
  37.             on_press: root.start_record()
  38.     AnchorLayout:
  39.         anchor_x: 'center'
  40.         height: "60dp"
  41.         size_hint_y: None
  42.         Label:
  43.             text: 'My state is %s' % btnrecord.state
  44.     AnchorLayout:
  45.         anchor_x: 'center'
  46.         height: "10dp"
  47.         size_hint_y: None
  48.         ProgressBar:
  49.             id: pb
  50.             size_hint_x: .5
  51.             value: 0 #(app.time * 20) % 100.
  52.             canvas:
  53.                 Color:
  54.                     rgb: 1, 0, 0
  55.     GraphForm:
  56.         id: graphlayout
  57.         anchor_y: 'top'
  58. #    AnchorLayout:
  59. #        id: graphlayout
  60. #        anchor_y: 'top'
Advertisement
Add Comment
Please, Sign In to add comment