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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dos
flow3r firmware
Commits
6cc8c588
Commit
6cc8c588
authored
1 year ago
by
iggy
Committed by
q3k
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
cleanup
parent
b0c5fb6e
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
python_payload/application.py
+1
-3
1 addition, 3 deletions
python_payload/application.py
python_payload/harmonic_demo.py
+0
-1
0 additions, 1 deletion
python_payload/harmonic_demo.py
python_payload/ui.py
+2
-2
2 additions, 2 deletions
python_payload/ui.py
with
3 additions
and
6 deletions
python_payload/application.py
+
1
−
3
View file @
6cc8c588
...
...
@@ -27,7 +27,7 @@ class Application():
condition
=
lambda
e
:
e
[
"
type
"
]
==
"
button
"
and
e
.
get
(
"
from
"
)
==
2
and
e
[
"
change
"
]
))
self
.
ui
.
add
(
ui
.
Icon
(
label
=
self
.
title
))
self
.
ui
.
add
(
ui
.
Icon
(
label
=
self
.
title
,
size
=
100
))
def
__repr__
(
self
):
return
"
App
"
+
self
.
title
...
...
@@ -109,7 +109,6 @@ class Application():
def
_to_background
(
self
):
self
.
state
=
STATE_BACKGROUND
if
self
.
_events_foreground
:
print
(
"
baz
"
)
self
.
_set_events
(
self
.
_events_foreground
,
False
)
self
.
engine
.
register_main_loop
(
self
.
main_foreground
,
False
)
...
...
@@ -138,7 +137,6 @@ class Application():
pass
def
main_foreground
(
self
):
#print("nothing")
pass
def
main_always
(
self
):
...
...
This diff is collapsed.
Click to expand it.
python_payload/harmonic_demo.py
+
0
−
1
View file @
6cc8c588
...
...
@@ -70,7 +70,6 @@ class HarmonicApp(Application):
pass
def
main_foreground
(
self
):
print
(
"
hererer
"
)
run
()
app
=
HarmonicApp
(
"
harmonic
"
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
python_payload/ui.py
+
2
−
2
View file @
6cc8c588
...
...
@@ -47,11 +47,11 @@ class UIElement():
def
draw
(
self
,
offset
=
(
0
,
0
)):
pos
=
(
self
.
origin
[
0
]
+
offset
[
0
],
self
.
origin
[
1
]
+
offset
[
1
])
self
.
_draw
(
pos
)
for
child
in
self
.
children
:
child
.
draw
(
pos
)
self
.
_draw
(
pos
)
def
_draw
(
self
,
pos
):
pass
...
...
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