mirror of
https://github.com/clockworkpi/launcher.git
synced 2025-12-12 17:58:50 +01:00
tiny cloud and bluetooth
This commit is contained in:
parent
1ebfd1cd5e
commit
c5fd06c049
@ -562,17 +562,23 @@ class BluetoothPage(Page):
|
||||
self._WirelessList = []
|
||||
start_x = 0
|
||||
start_y = 0
|
||||
|
||||
|
||||
counter = 0
|
||||
for i,v in enumerate(self._Devices):
|
||||
if "Name" in self._Devices[v]:
|
||||
if len(self._Devices[v]["Name"]) < 2:
|
||||
continue
|
||||
|
||||
ni = NetItem()
|
||||
ni._Parent = self
|
||||
ni._PosX = start_x
|
||||
ni._PosY = start_y + i* NetItem._Height
|
||||
ni._PosY = start_y + counter* NetItem._Height
|
||||
ni._Width = Width
|
||||
ni._FontObj = self._ListFontObj
|
||||
|
||||
ni.Init(v,self._Devices[v])
|
||||
|
||||
counter += 1
|
||||
self._WirelessList.append(ni)
|
||||
|
||||
self._PsIndex = 0
|
||||
|
||||
@ -152,7 +152,7 @@ class TinyCloudPage(Page):
|
||||
self._Width = self._Screen._Width ## equal to screen width
|
||||
self._Height = self._Screen._Height
|
||||
|
||||
self._PngSize["bg"] = (253,132)
|
||||
self._PngSize["bg"] = (253,114)
|
||||
self._PngSize["online"] = (75,122)
|
||||
|
||||
bgpng = IconItem()
|
||||
@ -201,6 +201,12 @@ class TinyCloudPage(Page):
|
||||
self._Labels["key_and_pass"].Draw()
|
||||
|
||||
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"].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