-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathscreenselectpath.kv
56 lines (55 loc) · 1.93 KB
/
screenselectpath.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
<ScreenSelectPath>:
name: "ScreenSelectPath"
MDBoxLayout:
orientation: "vertical"
spaceing:20
MDBoxLayout:
size_hint_y:.30
orientation: "vertical"
MDRelativeLayout:
size_hint_y:.30
MDLabel:
pos_hint:{"center_x": .50, "center_y": .50}
text:"当前目录:"
MDRectangleFlatIconButton:
pos_hint:{"center_x": .35, "center_y": .5}
id: id_btn_back
text: "up"
icon: "keyboard-return"
theme_text_color: "Custom"
theme_icon_color: "Custom"
icon_color: "orange"
on_release: app.toUperLevelDir()
MDBoxLayout:
size_hint_y:.70
MDTextField:
id:id_cur_path
size_hint_y:.7
max_text_length:255
multiline:True
mode: "line"
MDBoxLayout:
size_hint_y:.60
orientation: "vertical"
MDLabel:
size_hint_y:.05
text: "子目录"
MDScrollView:
size_hint_y:.95
MDList:
id: id_dir_list
MDBoxLayout:
size_hint_y:.10
orientation: "horizontal"
MDRelativeLayout:
MDRectangleFlatButton:
id:id_btn_ok
pos_hint:{"center_x": .25, "center_y": .5}
text: "确定"
theme_text_color: "Custom"
text_color: "orange"
#on_release:动态绑定
MDRectangleFlatButton:
pos_hint:{"center_x": .75, "center_y": .5}
text: "取消"
on_release:app.back_mainScreen()