-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSelectionFractalsMenu.kv
51 lines (48 loc) · 2.04 KB
/
SelectionFractalsMenu.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
<SelectionFractalsMenu>:
FitImage:
source: 'Menu2.jpg'
MDBoxLayout:
orientation: 'vertical'
padding: 50
spacing: 15
MDRaisedButton:
pos_hint: {'center_x': 0.5, 'center_y': 0.5}
size_hint: 0.5, 0.1
text: "Метод хаоса"
text_color: 0, 0, 0, 1
md_bg_color: .95, .87, .60, 0.7
on_release:
root.manager.transition.direction = 'right'
root.manager.current = 'chaos'
root.manager.current_screen.ids.bottom_nav_chaos.switch_tab('screen 1')
# Из-за бага приходится перезагружать кнопки
root.manager.current_screen.ids.bottom_nav_chaos._refresh_tabs()
MDRaisedButton:
pos_hint: {'center_x': 0.5, 'center_y': 0.5}
size_hint: 0.5, 0.1
text: "Папоротник Барнсли"
text_color: 0, 0, 0, 1
md_bg_color: .95, .87, .60, 0.7
on_release:
root.manager.transition.direction = 'left'
root.manager.current = 'fern'
root.manager.current_screen.ids.bottom_nav_barnsley.switch_tab('screen 1')
# Из-за бага приходится перезагружать кнопки
root.manager.current_screen.ids.bottom_nav_barnsley._refresh_tabs()
MDRaisedButton:
pos_hint: {'center_x': 0.5, 'center_y': 0.5}
size_hint: 0.5, 0.1
text: "В разработке..."
text_color: 0, 0, 0, 1
md_bg_color: .95, .87, .60, 0.7
MDRaisedButton:
pos_hint: {'center_x': 0.5, 'center_y': 0.5}
size_hint: 0.5, 0.1
text: "В главное меню"
text_color: 0, 0, 0, 1
md_bg_color: .95, .87, .60, 0.7
on_release:
root.manager.transition.direction = 'down'
root.manager.current = 'menu'
Widget:
size_hint: 1, 0.5