-
Notifications
You must be signed in to change notification settings - Fork 0
/
add_task.kv
33 lines (32 loc) · 1019 Bytes
/
add_task.kv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<AddTaskScreen>:
orientation: "vertical"
GridLayout:
cols: 2
Label:
text:"Name"
TextInput:
id: taskname
hint_text: "Name of Task"
text: root.noneToString(root.task.name)
Label:
text:"Description"
TextInput:
id: taskdescription
hint_text: "Description of task"
text: root.noneToString(root.task.description)
Label:
text:"Duration"
TextInput:
id:taskduration
hint_text: "Duration of task in hours"
text: root.noneToString(root.task.duration)
Label:
text:"Deadline"
TextInput:
id: taskdeadline
hint_text: "Deadline of task"
text: root.noneToString(root.task.deadline)
Button:
text: 'Create new Task'
size_hint_y: 0.2
on_press: root.createParentTask(taskname.text,taskdescription.text,taskduration.text,taskdeadline.text)