-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscreenselectfile.kv
89 lines (88 loc) · 3.22 KB
/
screenselectfile.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
<ScreenSelectFile>:
name: "ScreenSelectFile"
MDBoxLayout:
orientation: "vertical"
spaceing:20
MDBoxLayout:
size_hint_y:.25
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: "上一级"
icon: "keyboard-return"
theme_text_color: "Custom"
#text_color: "white"
#line_color: "red"
theme_icon_color: "Custom"
icon_color: "orange"
on_release: app.toUperLevelDirWithFile()
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:.30
orientation: "vertical"
MDRelativeLayout:
size_hint_y:.10
MDLabel:
text: "子目录:"
pos_hint:{"center_x": .50, "center_y": .50}
MDLabel:
pos_hint:{"center_x": .70, "center_y": .50}
id:id_subdir
text: ""
MDRectangleFlatIconButton:
pos_hint:{"center_x": .75, "center_y": .5}
id: id_btn_back
text: "切换"
icon: "keyboard-return"
theme_text_color: "Custom"
#text_color: "white"
#line_color: "red"
theme_icon_color: "Custom"
icon_color: "orange"
on_release:app.cdSubDir()
MDScrollView:
size_hint_y:.90
MDList:
id: id_dir_list
MDBoxLayout:
size_hint_y:.35
orientation: "vertical"
MDLabel:
id:id_filetype
size_hint_y:.05
text: "文件类型"
MDScrollView:
size_hint_y:.95
#id: id_chessmanualtree
#do_scroll_x: True
#do_scroll_y: True
MDList:
id: id_file_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:app.open_SelectedXQFFile()
MDRectangleFlatButton:
pos_hint:{"center_x": .75, "center_y": .5}
text: "取消"
on_release:app.back_mainScreen()