Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Μ
µnit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
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
Teckids
Projekt Hack-n-Fun
Libs
µnit
Commits
d56b4e0a
Verified
Commit
d56b4e0a
authored
3 years ago
by
magicfelix
Browse files
Options
Downloads
Patches
Plain Diff
[WIP] Show available devices list
parent
4c834f2b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#76469
failed
3 years ago
Stage: prepare
Stage: build
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
companion/app.py
+8
-0
8 additions, 0 deletions
companion/app.py
companion/mynitcompanion.kv
+2
-2
2 additions, 2 deletions
companion/mynitcompanion.kv
with
10 additions
and
2 deletions
companion/app.py
+
8
−
0
View file @
d56b4e0a
from
kivy.app
import
App
from
kivy.properties
import
ObjectProperty
from
kivy.uix.widget
import
Widget
from
bluetooth
import
MynitBluetooth
class
DeviceListWidget
(
Widget
):
app
=
ObjectProperty
()
class
MynitCompanionApp
(
App
):
def
__init__
(
self
,
*
args
,
**
kwargs
):
super
().
__init__
(
*
args
,
**
kwargs
)
...
...
@@ -10,3 +15,6 @@ class MynitCompanionApp(App):
def
update_device_list
(
self
,
devices
):
pass
def
build
(
self
):
return
DeviceListWidget
(
app
=
self
)
This diff is collapsed.
Click to expand it.
companion/mynitcompanion.kv
+
2
−
2
View file @
d56b4e0a
#:kivy 1.0.9
GridLayout
:
<DeviceListWidget>
:
cols: 1
Label:
text:
"Device list"
text:
str(root.app._bluetooth._available_devices)
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