-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathserver_screen_here.kv
More file actions
57 lines (52 loc) · 1.53 KB
/
Copy pathserver_screen_here.kv
File metadata and controls
57 lines (52 loc) · 1.53 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
50
51
52
53
54
55
56
57
#:import FallOutTransition kivy.uix.screenmanager.FallOutTransition
#:import App kivy.app.App
<LoadingImage@Image>:
source: "data/images/image-loading.zip"
allow_stretch: True
pos_hint: {'center_x': 0.5, 'center_y': 0.4}
size_hint: None, None
size: sp(100), sp(100)
<StackLabel@Label>:
size_hint: None, None
font_size: "20sp"
size: self.texture_size
<ServerNotConfigured@Screen>:
StackLayout:
orientation: "lr-tb"
padding: sp(20), sp(20), 0, 0
StackLabel:
text: "To start "
StackLabel:
text: f"{tc('Python', 1)}{tc('here', 3)}, "
StackLabel:
text: "you "
StackLabel:
text: "need to "
StackLabel:
text: "edit the "
Button:
text: "Settings"
font_size: "20sp"
size_hint: None, None
width: self.texture_size[0] + sp(20)
height: sp(30)
on_release: App.get_running_app().root.switch_screen(ScreenName.settings)
StackLabel:
text: " section."
<StartingServerScreen@Screen>:
Label:
text: f"Waiting {tc('Python', 1)}{tc('here', 3)} to start"
font_size: "30sp"
LoadingImage:
<ServerScreenManager>:
transition: FallOutTransition()
Screen:
LoadingImage:
ServerNotConfigured:
name: ServerState.not_configured
Screen:
StartingServerScreen:
name: ServerState.starting_server
Screen:
name: ServerState.ready
ConnectionAddressInfoBox: