mirror of
https://github.com/clockworkpi/launcher.git
synced 2025-12-15 03:08:50 +01:00
cut smalltext in bluetooth infopage
This commit is contained in:
parent
1d9f2fa1b6
commit
fb0e6c00e7
@ -137,14 +137,15 @@ class BleInfoPage(Page):
|
|||||||
self._MyList = []
|
self._MyList = []
|
||||||
self._PsIndex = 0
|
self._PsIndex = 0
|
||||||
start_x = 0
|
start_x = 0
|
||||||
start_y = 0
|
start_y = 0
|
||||||
|
|
||||||
for i,v in enumerate( self._AList):
|
for i,v in enumerate( self._AList):
|
||||||
#print(i,v) # (0, dbus.String(u'AddressType'))
|
#print(i,v) # (0, dbus.String(u'AddressType'))
|
||||||
|
|
||||||
li = InfoPageListItem()
|
li = InfoPageListItem()
|
||||||
li._Parent = self
|
li._Parent = self
|
||||||
li._PosX = start_x
|
li._PosX = start_x
|
||||||
li._PosY = start_y + i*InfoPageListItem._Height
|
li._PosY = start_y + counter*InfoPageListItem._Height
|
||||||
li._Width = Width
|
li._Width = Width
|
||||||
li._Fonts["normal"] = self._ListFontObj
|
li._Fonts["normal"] = self._ListFontObj
|
||||||
|
|
||||||
@ -170,11 +171,11 @@ class BleInfoPage(Page):
|
|||||||
elif sm_text == "1":
|
elif sm_text == "1":
|
||||||
sm_text="Yes"
|
sm_text="Yes"
|
||||||
|
|
||||||
|
sm_text = sm_text[:20]
|
||||||
li.SetSmallText(sm_text)
|
li.SetSmallText(sm_text)
|
||||||
|
|
||||||
li._PosX = 2
|
li._PosX = 2
|
||||||
self._MyList.append(li)
|
self._MyList.append(li)
|
||||||
|
|
||||||
|
|
||||||
def ScrollUp(self):
|
def ScrollUp(self):
|
||||||
if len(self._MyList) == 0:
|
if len(self._MyList) == 0:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user