-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkivy.kv
69 lines (58 loc) · 1.76 KB
/
kivy.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
<MyLayout>
do_default_tab: False
id: mylayout_id
TabbedPanelItem:
text: '股價查詢'
BoxLayout:
orientation: 'vertical'
MDTextField:
hint_text: '輸入股票名稱或代碼'
multiline: False
size_hint: (None, None)
height: 50
width: 500
pos_hint: {'center_x': 0.5, 'center_y': 0.5}
on_text_validate: app.on_enter(self)
MDCard:
id: label
size_hint: None, None
size: 500, 500
pos_hint: {'center_x': 0.5, 'center_y': 0.5}
MDLabel:
id: label_text
text: '目前股價'
font_size: 25
halign: 'center'
Image:
id: img
TabbedPanelItem:
text: '基本財報'
BoxLayout:
orientation: 'vertical'
Label:
id: financial
size_hint: (1, 1)
TabbedPanelItem:
text: '財報分析'
BoxLayout:
spacing: 20
orientation: 'vertical'
MDCard:
id: label
size_hint: None, None
size: 700, 100
MDLabel:
id: analyze
halign: 'center'
text: '查詢年份:' + str(int(slider.value))
MDSlider:
id: slider
hint: True
min: 1
max: 10
step: 1
width: 500
size_hint_x: None
MDLabel:
id: analyze
halign: 'center'