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
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
flow3r
flow3r firmware
Commits
994b9807
Commit
994b9807
authored
3 months ago
by
moon2
Browse files
Options
Downloads
Patches
Plain Diff
Touchable, CapScrollController: add deprecation warnings
parent
3eb69875
No related branches found
No related tags found
1 merge request
!738
system: add help texts
Pipeline
#13278
passed
3 months ago
Stage: check
Stage: build
Stage: deploy
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
python_payload/apps/demo_scroll/__init__.py
+2
-0
2 additions, 0 deletions
python_payload/apps/demo_scroll/__init__.py
python_payload/st3m/input.py
+2
-0
2 additions, 0 deletions
python_payload/st3m/input.py
python_payload/st3m/ui/interactions.py
+2
-0
2 additions, 0 deletions
python_payload/st3m/ui/interactions.py
with
6 additions
and
0 deletions
python_payload/apps/demo_scroll/__init__.py
+
2
−
0
View file @
994b9807
...
...
@@ -18,6 +18,8 @@ class ScrollDemo(Application):
def
__init__
(
self
,
app_ctx
:
ApplicationContext
)
->
None
:
super
().
__init__
(
app_ctx
)
# this class is deprecated, please don't use it for new apps
# check out st3m.ui.widgets.Scroller instead!
self
.
scroll
=
CapScrollController
()
def
draw
(
self
,
ctx
:
Context
)
->
None
:
...
...
This diff is collapsed.
Click to expand it.
python_payload/st3m/input.py
+
2
−
0
View file @
994b9807
...
...
@@ -285,6 +285,8 @@ class TouchableState(Enum):
class
Touchable
:
"""
Deprecated, don
'
t use for new applications!
A Touchable processes incoming captouch positional state into higher-level
simple gestures.
...
...
This diff is collapsed.
Click to expand it.
python_payload/st3m/ui/interactions.py
+
2
−
0
View file @
994b9807
...
...
@@ -175,6 +175,8 @@ class ScrollController(st3m.Responder):
class
CapScrollController
:
"""
Deprecated, use st3m.ui.widgets.Scroller instead!
A Capacitive Touch based Scroll Controller.
You can think of it as a virtual trackball controlled by a touch petal. It
...
...
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