mirror of
https://github.com/clockworkpi/launcher.git
synced 2025-12-13 18:28:50 +01:00
tiny cloud and bluetooth
This commit is contained in:
parent
1ebfd1cd5e
commit
c5fd06c049
@ -563,16 +563,22 @@ class BluetoothPage(Page):
|
|||||||
start_x = 0
|
start_x = 0
|
||||||
start_y = 0
|
start_y = 0
|
||||||
|
|
||||||
|
counter = 0
|
||||||
for i,v in enumerate(self._Devices):
|
for i,v in enumerate(self._Devices):
|
||||||
|
if "Name" in self._Devices[v]:
|
||||||
|
if len(self._Devices[v]["Name"]) < 2:
|
||||||
|
continue
|
||||||
|
|
||||||
ni = NetItem()
|
ni = NetItem()
|
||||||
ni._Parent = self
|
ni._Parent = self
|
||||||
ni._PosX = start_x
|
ni._PosX = start_x
|
||||||
ni._PosY = start_y + i* NetItem._Height
|
ni._PosY = start_y + counter* NetItem._Height
|
||||||
ni._Width = Width
|
ni._Width = Width
|
||||||
ni._FontObj = self._ListFontObj
|
ni._FontObj = self._ListFontObj
|
||||||
|
|
||||||
ni.Init(v,self._Devices[v])
|
ni.Init(v,self._Devices[v])
|
||||||
|
|
||||||
|
counter += 1
|
||||||
self._WirelessList.append(ni)
|
self._WirelessList.append(ni)
|
||||||
|
|
||||||
self._PsIndex = 0
|
self._PsIndex = 0
|
||||||
|
|||||||
@ -152,7 +152,7 @@ class TinyCloudPage(Page):
|
|||||||
self._Width = self._Screen._Width ## equal to screen width
|
self._Width = self._Screen._Width ## equal to screen width
|
||||||
self._Height = self._Screen._Height
|
self._Height = self._Screen._Height
|
||||||
|
|
||||||
self._PngSize["bg"] = (253,132)
|
self._PngSize["bg"] = (253,114)
|
||||||
self._PngSize["online"] = (75,122)
|
self._PngSize["online"] = (75,122)
|
||||||
|
|
||||||
bgpng = IconItem()
|
bgpng = IconItem()
|
||||||
@ -201,6 +201,12 @@ class TinyCloudPage(Page):
|
|||||||
self._Labels["key_and_pass"].Draw()
|
self._Labels["key_and_pass"].Draw()
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
self._Labels["for-usb-eth"].NewCoord(self._Coords["for-usb-eth"].x+55, self._Coords["for-usb-eth"].y)
|
||||||
|
self._Labels["for-usb-eth"].Draw()
|
||||||
|
|
||||||
|
self._Labels["usb-eth-addr"].NewCoord(self._Coords["usb-eth-addr"].x+55, self._Coords["usb-eth-addr"].y)
|
||||||
|
self._Labels["usb-eth-addr"].Draw()
|
||||||
|
|
||||||
self._Icons["bg"].NewCoord(self._Coords["bg"].x, self._Coords["bg"].y)
|
self._Icons["bg"].NewCoord(self._Coords["bg"].x, self._Coords["bg"].y)
|
||||||
self._Icons["bg"].Draw()
|
self._Icons["bg"].Draw()
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 6.2 KiB |
Loading…
x
Reference in New Issue
Block a user