2n2u

Untitled

Nov 1st, 2015
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 6.98 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'
  61.  
  62.  
  63. <RegisterForm@BoxLayout>: #
  64.     orientation: "vertical" #
  65.     AnchorLayout:
  66.         height: "40dp" #
  67.         size_hint_y: None
  68.         anchor_x: 'center'
  69.         anchor_y: 'top'
  70.         Label:
  71.             text: "User Details"
  72.     AnchorLayout:
  73.         height: "60dp" #
  74.         size_hint_y: None
  75.     BoxLayout:
  76.         height: "40dp" #
  77.         size_hint_y: None
  78.         anchor_x: 'left'
  79.         Label:
  80.             text: "Name:"
  81.         TextInput:
  82.             size_hint_x: None
  83.             width: "400dp"
  84.     AnchorLayout:
  85.         anchor_y: 'top'
  86.         Button:
  87.             size_hint:(None,None)
  88.             text: "lel"
  89.             width: "48dp"
  90.             height: "48dp"
  91.             background_normal: 'D:/Dropbox/1_TESE/data/images/ic_home_white_48dp.png'
  92.  
  93.  
  94. <RootScreen>:
  95.     user_profile: userprofile
  96.     g_evaluation: evaluation
  97.     show_results: showresults
  98.     go_settings: settings
  99.     screen_manager: screen_manager
  100.  
  101.     ScreenManager:
  102.         id: screen_manager
  103.         Screen:
  104.             name: "Home"
  105.             BoxLayout:
  106.                 orientation:'vertical'
  107.                 #size_hint: (None,None)
  108.                 BoxLayout:
  109.                     orientation: 'vertical'
  110.                     size_hint_y: 10
  111.                 BoxLayout:
  112.                     orientation: 'horizontal'
  113.                     size_hint_y: 30
  114.                     AnchorLayout:
  115.                         anchor_x: 'center'
  116.                         anchor_y: 'center'
  117.                         BoxLayout:
  118.                             orientation: 'vertical'
  119.                             AnchorLayout:
  120.                                 anchor_x: 'center'
  121.                                 Label:
  122.                                     text: 'User Profile'
  123.                                     color: 0.160, 0.501, 0.725, 1
  124.                                     bold: 'True'
  125.                             AnchorLayout:
  126.                                 anchor_x: 'center'
  127.                                 anchor_y: 'center'
  128.                                 Button:
  129.                                     id: userprofile
  130.                                     size_hint:(None,None)
  131.                                     width: "48dp"
  132.                                     height: "48dp"
  133.  
  134.                     AnchorLayout:
  135.                         anchor_x: 'center'
  136.                         anchor_y: 'center'
  137.                         BoxLayout:
  138.                             orientation: 'vertical'
  139.                             AnchorLayout:
  140.                                 anchor_x: 'center'
  141.                                 Label:
  142.                                     text: 'Start Evaluation'
  143.                                     color: 0.160, 0.501, 0.725, 1
  144.                                     bold: 'True'
  145.                             AnchorLayout:
  146.                                 anchor_x: 'center'
  147.                                 anchor_y: 'center'
  148.                                 Button:
  149.                                     id: evaluation
  150.                                     size_hint:(None,None)
  151.                                     width: "48dp"
  152.                                     height: "48dp"
  153.                                     on_press:
  154.                                         root.screen_manager.current = 'RecordForm'
  155.                                         root.select_screen()
  156.                 BoxLayout:
  157.                     orientation: 'horizontal'
  158.                     size_hint_y: 30
  159.                     AnchorLayout:
  160.                         anchor_x: 'center'
  161.                         anchor_y: 'center'
  162.                         BoxLayout:
  163.                             orientation: 'vertical'
  164.                             AnchorLayout:
  165.                                 anchor_x: 'center'
  166.                                 Label:
  167.                                     text: 'Show Results'
  168.                                     color: 0.160, 0.501, 0.725, 1
  169.                                     bold: 'True'
  170.                             AnchorLayout:
  171.                                 anchor_x: 'center'
  172.                                 anchor_y: 'center'
  173.                                 Button:
  174.                                     id: showresults
  175.                                     size_hint:(None,None)
  176.                                     width: "48dp"
  177.                                     height: "48dp"
  178.                     AnchorLayout:
  179.                         anchor_x: 'center'
  180.                         anchor_y: 'center'
  181.                         BoxLayout:
  182.                             orientation: 'vertical'
  183.                             AnchorLayout:
  184.                                 anchor_x: 'center'
  185.                                 Label:
  186.                                     text: 'Settings'
  187.                                     color: 0.160, 0.501, 0.725, 1
  188.                                     bold: 'True'
  189.                             AnchorLayout:
  190.                                 anchor_x: 'center'
  191.                                 anchor_y: 'center'
  192.                                 Button:
  193.                                     id: settings
  194.                                     size_hint:(None,None)
  195.                                     width: "48dp"
  196.                                     height: "48dp"
  197.                 BoxLayout:
  198.                     orientation: 'vertical'
  199.                     size_hint_y: 30
  200.         Screen:
  201.             name: "RecordForm"
  202.             RecordForm:
Advertisement
Add Comment
Please, Sign In to add comment