-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscreeninputfilename.kv
77 lines (75 loc) · 2.6 KB
/
screeninputfilename.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
#这种方式pyinstaller打包成exe后,会出现: Unable to import package ,so改到py中
##:import saveFileXQF tree2xqf.saveFileXQF
<ScreenInputFileName>:
name: "ScreenInputFileName"
MDBoxLayout:
orientation: "vertical"
spacing:4
MDBoxLayout:
size_hint_y:.2
orientation: "horizontal"
#canvas.before:
# Color:
# rgba:[0,1,1,1]
# Rectangle:
# size:[self.width,self.height]
# pos:self.pos
MDLabel:
size_hint_x:.15
text:"路径:"
MyMDTextField:
id:id_filepath
size_hint_x:.7
max_text_length:255
multiline:True
mode: "line"# fill round line rectangle
imc_id:'id_path_input'
imc_scr_id:'id_scrinputfilename'
MDRoundFlatButton:
size_hint_x:.15
#center_y:self.center_y
text: "浏览"
theme_text_color: "Custom"
text_color: "orange"
on_release:app.select_path('ScreenInputFileName','id_scrinputfilename','id_filepath')
MDBoxLayout:
size_hint_y:.1
MDLabel:#蛋疼的windows中文输入法
id:id_path_input
text:""
halign: "center"
MDBoxLayout:
size_hint_y:.1
MDLabel:
size_hint_x:.15
text:"文件名:"
MyMDTextField:
id:id_filename
size_hint_x:.85
max_text_length:255
multiline:False
mode: "line"# fill round line rectangle
imc_id:'id_filename_input'
imc_scr_id:'id_scrinputfilename'
MDBoxLayout:
size_hint_y:.1
MDLabel:#蛋疼的windows中文输入法
id:id_filename_input
text:""
halign: "center"
MDRelativeLayout:
size_hint_y:.1
orientation: "horizontal"
MDRectangleFlatButton:
id:id_savebtn
pos_hint:{"center_x": .25, "center_y": .5}
text: "确定"
theme_text_color: "Custom"
text_color: "orange"
on_release:app.saveFileXQF()
MDRectangleFlatButton:
pos_hint:{"center_x": .75, "center_y": .5}
text: "取消"
on_release:app.back_mainScreen()
MDBoxLayout:
#占位