-
Notifications
You must be signed in to change notification settings - Fork 0
/
polarkiosque.kv
101 lines (90 loc) · 2.11 KB
/
polarkiosque.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
#:kivy 1.0
#:import kivy kivy
<PolarKiosque>:
content: content
canvas:
Color:
rgb: 1, 1, 1
Rectangle:
source: 'data/images/background.jpg'
size: self.size
BoxLayout:
orientation: 'vertical'
FloatLayout:
id: content
BoxLayout:
padding: 10
spacing: 10
size_hint: 1, None
pos_hint: {'top': 1}
height: 62
Image:
size_hint: None, None
size: 24, 24
source: 'data/logo/kivy-icon-24.png'
Label:
height: 24
text_size: self.size
color: (1, 1, 1, .8)
text: 'PolarKiosque 0.1'
Button:
width: self.parent.width/10 # non pris en compte
text: "Éjecter la clé et revenir à l'accueil"
background_color: [0, 27/255., 182/255., 1]
<PreviewScreen>:
path: path
scroll: scroll_
surface_pdf: surface_pdf_
BoxLayout:
orientation: 'horizontal'
y: root.height*0.1
BoxLayout:
orientation: 'vertical'
size_hint_x: 0.75
Label:
size_hint: 1, None
id: path
text: 'Ouverure de %s' % (root.doc_path)
ScrollView:
id: scroll_
Widget:
id: surface_pdf_
BoxLayout:
orientation: 'vertical'
spacing: 15
size_hint: 0.25, 0.9
BoxLayout:
orientation: 'horizontal'
size_hint: 1, 0.25
spacing: 15
ToggleButton:
text: 'Noir & blanc'
group: 'imprimante'
state: 'down'
font_size: 15
ToggleButton
text: 'Couleur'
group: 'imprimante'
font_size: 15
BoxLayout:
orientation: 'horizontal'
size_hint: 1, 0.25
spacing: 15
ToggleButton:
text: 'Normal'
group: 'type'
state: 'down'
font_size: 15
ToggleButton:
text: 'Recto-verso'
group: 'type'
font_size: 15
Label:
text: 'Total : %s pages / %s €' % (root.nb_pages, root.nb_pages*root.prix_page)
size_hint: 1, 0.3
font_size: 20
Button:
text: "Lancer l'impression"
background_color: [0,181/255.,38/255.,1]
font_size: 20
size_hint: 1, 0.2