-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathStageSetScreen.kv
More file actions
79 lines (65 loc) · 1.85 KB
/
StageSetScreen.kv
File metadata and controls
79 lines (65 loc) · 1.85 KB
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
#:kivy 1.10.1
#:include RV.kv
<StageSetScreen>:
rv:rv
ic:ic
filechooser: filechooser
filechooserRoot: './source/img'
BoxLayout:
orientation: 'vertical'
BoxLayout:
canvas.before:
Color:
rgba: 0.5, 0.5, 0.5, 1
Rectangle:
size: self.size
pos: self.pos
size_hint_y: None
height: 30
Button:
text: 'Back'
on_release:
root.switchToStageShow()
Button:
text: 'load'
on_release:
root.show_load()
Button:
text: '3'
Button:
text: '4'
Button:
text: 'save'
on_release:
root.rv.saveByPath()
GridLayout:
rows: 2
cols: 1
size_hint_y: 1
#padding: dp(8)
#spacing: dp(16)
RV:
id:rv
rootPath: root.filechooserRoot
viewclass: 'SelectableLabel'
delegate: root
CustomFileChooser:
id: filechooser
rootpath: root.filechooserRoot
#filters: ['*.jpg']
on_selection:
root.saveFileToRV(self.selection)
on_touch_down:
root.on_filechoosertouch_down([*args[1].pos])
on_touch_up:
root.on_filechoosertouch_up([*args[1].pos])
FloatLayout:
#size: 30, 30
Label:
id: ic
disabled: True
opacity: 1 if root.fileSelected else 0
text: '1234567'
size: 100,100
size_hint: None, None
center: 20,20