-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbucketuploader.kv
85 lines (74 loc) · 1.8 KB
/
bucketuploader.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
Root:
label_small: label_small
thumb: thumb
orientation: 'vertical'
canvas:
Color:
rgba: root.backgroundColor
Rectangle:
pos: self.pos
size: self.size
FloatLayout:
Image:
id: thumb
source: ''
color: root.backgroundColor
pos_hint: {'x':0, 'center_y': .5}
Label:
font_size: 40
size_hint_y: None
height: 40
color: root.titleColor
text: 'gallery project uploader'
Label:
id: label_small
font_size: 12
size_hint_y: None
height: 50
color: root.textColor
text: 'select project folder'
BoxLayout:
size_hint_y: None
height: 40
Button:
id: butt
background_normal: ''
background_color: root.buttonColor
color: root.textColor
background_down: '#660000'
text: 'browse'
on_press: butt.background_color = root.buttonPressedColor
on_release: butt.background_color = root.buttonColor
on_release: root.show_load()
Button:
id: upp
background_normal: ''
background_color: root.buttonColor
color: root.textColor
background_down: '#660000'
text: 'upload'
on_press: upp.background_color = root.buttonPressedColor
on_release: upp.background_color = root.buttonColor
on_release: root.uploadProject()
<LoadDialog>:
BoxLayout:
size: root.size
pos: root.pos
orientation: "vertical"
FileChooserListView:
id: filechooser
BoxLayout:
size_hint_y: None
height: 30
Button:
background_normal: ''
background_color: root.buttonColor
color: root.textColor
text: "Cancel"
on_release: root.cancel()
Button:
background_normal: ''
background_color: root.buttonColor
color: root.textColor
text: "Load"
on_release: root.load(filechooser.path)