-
Notifications
You must be signed in to change notification settings - Fork 0
/
PhotoEdit.kv
84 lines (77 loc) · 2.45 KB
/
PhotoEdit.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
<QuizManager>:
Question2Screen:
name: "question2"
CorrectScreen:
name: "correct"
WrongScreen:
name: "wrong"
<Question2Screen>:
BoxLayout:
orientation:"vertical"
spacing: 5
GridLayout:
orientation:"lr-tb"
cols:2
TextInput:
id: theimg
hint_text: "Gimme a photo file. (debug: 2012)"
Button:
text: "Load image"
on_release: root.answer_question(theimg.text)
TextInput:
id: xinput
hint_text: "(X,width) input for spot pixalation"
Button:
text: "Spot pixalation"
on_release: root.pixalated_spot(xinput.text, yinput.text)
TextInput:
id: yinput
hint_text: "(Y,height) input for spot pixalation"
Button:
text: "Toggle pixal ruler (100pix/mark)"
on_release: root.ruler_toggle()
Button:
text: "Blue to green"
on_release: root.bluetogreenimage()
Button:
text: "Glitch"
on_release: root.glitching()
Button:
text: "Sepia"
on_release: root.sepiaimage()
Button:
text: "Invert"
on_release: root.invertion()
Button:
text: "Horizontal flip"
on_release: root.mirror_vertical()
Button:
text: "Vertical flip"
on_release: root.mirror_horizontal()
BoxLayout:
size_hint: 1, 1
orientation: "vertical"
Image:
id: image
source: root.display_image()
size_hint: 1, .5
<WrongScreen>:
BoxLayout:
orientation: "vertical"
spacing: "5"
Label:
text: "Invalid image or invalid input value."
Label:
text: "-format: x,length (No Space), example: 100,100 \n-you can not put a number with decimals or a number greater than the image size."
Button:
text: "Back -->"
on_release: root.next()
<CorrectScreen>:
BoxLayout:
orientation: "vertical"
spacing: "5"
Label:
text: "CORRECT"
Button:
text: "Next -->"
on_release: root.next()