Skip to content
Snippets Groups Projects
Verified Commit d56b4e0a authored by magicfelix's avatar magicfelix
Browse files

[WIP] Show available devices list

parent 4c834f2b
No related branches found
No related tags found
No related merge requests found
Pipeline #76469 failed
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)
#:kivy 1.0.9
GridLayout:
<DeviceListWidget>:
cols: 1
Label:
text: "Device list"
text: str(root.app._bluetooth._available_devices)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment