Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
flow3r firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dos
flow3r firmware
Commits
65e9cd10
Commit
65e9cd10
authored
1 year ago
by
pippin
Browse files
Options
Downloads
Patches
Plain Diff
st3m: add a run_app utility
parent
dea000bd
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
python_payload/st3m/run.py
+10
-1
10 additions, 1 deletion
python_payload/st3m/run.py
with
10 additions
and
1 deletion
python_payload/st3m/run.py
+
10
−
1
View file @
65e9cd10
...
@@ -11,7 +11,12 @@ from st3m.ui.menu import (
...
@@ -11,7 +11,12 @@ from st3m.ui.menu import (
from
st3m.ui.elements
import
overlays
from
st3m.ui.elements
import
overlays
from
st3m.ui.view
import
View
,
ViewManager
,
ViewTransitionBlend
from
st3m.ui.view
import
View
,
ViewManager
,
ViewTransitionBlend
from
st3m.ui.elements.menus
import
SimpleMenu
,
SunMenu
from
st3m.ui.elements.menus
import
SimpleMenu
,
SunMenu
from
st3m.application
import
BundleManager
,
BundleMetadata
,
MenuItemAppLaunch
from
st3m.application
import
(
BundleManager
,
BundleMetadata
,
MenuItemAppLaunch
,
ApplicationContext
,
)
from
st3m.about
import
About
from
st3m.about
import
About
from
st3m
import
settings
,
logging
,
processors
,
wifi
from
st3m
import
settings
,
logging
,
processors
,
wifi
...
@@ -125,6 +130,10 @@ def run_view(v: View) -> None:
...
@@ -125,6 +130,10 @@ def run_view(v: View) -> None:
reactor
.
run
()
reactor
.
run
()
def
run_app
(
klass
):
run_view
(
klass
(
ApplicationContext
()))
def
_yeet_local_changes
()
->
None
:
def
_yeet_local_changes
()
->
None
:
os
.
remove
(
"
/flash/sys/.sys-installed
"
)
os
.
remove
(
"
/flash/sys/.sys-installed
"
)
machine
.
reset
()
machine
.
reset
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment