-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtextlabeling.kv
106 lines (89 loc) · 2.37 KB
/
textlabeling.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
MainScreen:
<MainScreen>:
text_input_url: text_input_url
button_positive: button_positive
button_negative: button_negative
button_skip: button_skip
text_comment: comment
skip_interval: skip_interval
text_comment_count: text_comment_count
orientation: 'vertical'
BoxLayout:
orientation: "horizontal"
height: "40dp"
size_hint_y: None
Label:
text: "Enter Youtube URL: "
size_hint_x: 1
TextInput:
id: text_input_url
multiline: False
size_hint_x: 3
Button:
text: "Crawl"
size_hint_x: 1
on_press: root.start()
TextInput:
id: comment
text: "Enter a valid Youtube URL first"
font_size: "30dp"
disabled: True
BoxLayout:
orientation: "horizontal"
height: "40dp"
size_hint_y: None
Button:
id: button_positive
text: "Positive"
disabled: True
on_press: root.label("pos")
Button:
id: button_negative
text: "Negative"
disabled: True
on_press: root.label("neg")
BoxLayout:
orientation: "horizontal"
height: "40dp"
size_hint_y: None
Label:
size_hint_x: 2
id: text_comment_count
Button:
id: button_skip
text: "Skip"
disabled: True
on_press: root.get_next_comment()
size_hint_x: 2
Label:
text: "Skip interval:"
size_hint_x: 1
TextInput:
id: skip_interval
input_filter: "int"
text: "1"
size_hint_x: 1
<ErrorPopup>:
auto_dismiss: False
size_hint: None, None
size: 200, 200
title: ""
BoxLayout:
orientation: "vertical"
Label:
text: "Invalid URL"
Button:
size_hint_y: None
height: "40dp"
text: "Close"
on_press: root.dismiss()
<ScaleLabel@Label>:
_scale: 1. if self.texture_size[0] < self.width else float(self.width) / self.texture_size[0]
canvas.before:
PushMatrix
Scale:
origin: self.center
x: self._scale or 1.
y: self._scale or 1.
canvas.after:
PopMatrix