-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbvwsudoku.kv
46 lines (42 loc) · 1.34 KB
/
bvwsudoku.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
<PrintScreen>:
BoxLayout:
orientation: 'vertical'
size_hint: 0.9,0.9
# canvas:
# Color:
# rgba: [0,1,0,1]
# Rectangle:
# size: self.size
Image:
id: im
size_hint: 0.9, 0.9
pos_hint: {'center_x': .5, 'center_y': .5}
source: 'images/blank_9x9.jpg'
allow_stretch: True
FloatLayout:
size_hint: 1, 0.1
# canvas:
# Color:
# rgba: [0,0,1,1]
# Rectangle:
# size: self.size
Button:
id: but_print
pos_hint: {'center_x': .5, 'center_y': .5}
size_hint: None, 0.9
padding_x: 40
size: self.texture_size
# size:self.texture_size
# width: min([im.width,im.height])
text: 'Print'
on_press: root.print()
#:import sys sys
Button:
id: but_quit
pos_hint: {'right': 1, 'center_y': .5}
size_hint: None, 0.9
size: but_print.size
# width: min([im.width,im.height])
# height: but_print.height
text: 'Quit'
on_press: sys.exit(0)