Initial Commit
This commit is contained in:
27
bin/gui/command_screen.kv
Normal file
27
bin/gui/command_screen.kv
Normal file
@@ -0,0 +1,27 @@
|
||||
Command:
|
||||
name: "CommandScreen"
|
||||
md_bg_color: 0, 0, 0, 1
|
||||
FloatLayout:
|
||||
Label:
|
||||
id: cmd_out
|
||||
size_hint: 0.96, 0.6
|
||||
pos_hint: {"x": 0.03, "y": 0.35}
|
||||
text_size: self.size
|
||||
color: 1, 1, 1, 1
|
||||
text: ""
|
||||
valign: "bottom"
|
||||
TextInput:
|
||||
color: 1, 1, 1, 1
|
||||
foreground_color: 1, 1, 1, 1
|
||||
background_color: 0, 0, 0, 1
|
||||
size_hint: 0.96, 0.1
|
||||
pos_hint: {"x": 0.02, "y": 0.2}
|
||||
id: tin
|
||||
hint_text: "Enter command..."
|
||||
multiline: False
|
||||
on_text: root.autocomplete()
|
||||
on_text_validate: root.runcommand()
|
||||
Button:
|
||||
text: "back"
|
||||
size_hint: 0.1, 0.1
|
||||
pos_hint: {"x": 0.02, "y": 0.02}
|
||||
23
bin/gui/load_screen.kv
Normal file
23
bin/gui/load_screen.kv
Normal file
@@ -0,0 +1,23 @@
|
||||
Load:
|
||||
name: "LoadScreen"
|
||||
on_enter: root.start_pb()
|
||||
radius: [25, 25, 25, 25]
|
||||
md_bg_color: app.theme_cls.accent_light
|
||||
GridLayout:
|
||||
cols: 1
|
||||
Label:
|
||||
text: "micro:bit interface"
|
||||
font_size: 60
|
||||
color: app.theme_cls.primary_dark
|
||||
FloatLayout:
|
||||
MDProgressBar:
|
||||
id: progress
|
||||
size_hint: .6, .6
|
||||
pos_hint: {"x": 0.2, "y": 0.3}
|
||||
color: app.theme_cls.primary_dark
|
||||
type: "determinate"
|
||||
running_duration: 0.75
|
||||
catching_duration: 0.5
|
||||
Label:
|
||||
color: "black"
|
||||
text: "starting app ..."
|
||||
17
bin/gui/main_screen.kv
Normal file
17
bin/gui/main_screen.kv
Normal file
@@ -0,0 +1,17 @@
|
||||
Main:
|
||||
name: "HomeScreen"
|
||||
md_bg_color: app.theme_cls.accent_light
|
||||
GridLayout:
|
||||
cols: 1
|
||||
Label:
|
||||
text: "micro:bit interface"
|
||||
font_size: 60
|
||||
color: app.theme_cls.primary_dark
|
||||
GridLayout:
|
||||
cols: 2
|
||||
Button:
|
||||
text: "Start"
|
||||
on_release:
|
||||
app.root.current = "CommandScreen"
|
||||
Button:
|
||||
text: "Settings"
|
||||
Reference in New Issue
Block a user