-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpythonhere.kv
More file actions
49 lines (43 loc) · 1.42 KB
/
pythonhere.kv
File metadata and controls
49 lines (43 loc) · 1.42 KB
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
#:kivy 1.0
#:import RootLayout ui_here.layout_here.RootLayout
#:import ScreenName enum_here.ScreenName
#:import ServerState enum_here.ServerState
#:import ServerScreenManager ui_here.server_screen_here.ServerScreenManager
#:include ui_here/actionbar_here.kv
#:include ui_here/common_here.kv
#:include ui_here/connection_address_here.kv
#:include ui_here/server_screen_here.kv
#:include ui_here/settings_here.kv
RootLayout:
orientation: "vertical"
ActionBar:
pos_hint: {"top": 1}
ActionView:
ActionPrevious:
title: ""
with_previous: False
app_icon: "data/logo/logo-32.png"
ScreenActionButton:
id: open_here_action
text: f"%{tc('H', 3)}ere"
screen: ScreenName.here
ScreenActionButton:
id: open_settings_action
text: f"{tc('S', 3)}ettings"
screen: ScreenName.settings
ActionButton:
text: f"{tc('Q', 3)}uit"
on_release: app.get_running_app().stop()
ScreenManager:
id: screen_manager
Screen:
Screen:
id: here_screen
name: ScreenName.here
ServerScreenManager:
id: here_screen_manager
Screen:
id: settings_screen
name: ScreenName.settings
SettingsHere:
id: settings