openatv / enigma2

openatv-gui
GNU General Public License v2.0
199 stars 317 forks source link

messagebox.py breaks skins that use old skin applet autoresize resize code #2234

Closed kiddac closed 2 years ago

kiddac commented 2 years ago

When you amended the self.list = None this has broke a lot of skins A huge majority of skins used the skin applet code to resize the messagebox/choicebox screens self.list = None breaks the count=len(self.list) The original code created an empty list and not None self.list = [ ]

I am going to amend my skins to put a conditional around my skin applet code as my code is customised and differs from the original autoresize code. But other older skins are going to crash.

i.e.

from enigma import eSize,ePoint orgwidth=self.instance.size().width() orgpos=self.instance.position() textsize=self["text"].getSize() textsize=(textsize[0] + 80,textsize[1] + 80) **count=len(self.list)** if count > 10: count=14 ...
kiddac commented 2 years ago

the full applet people used to use was this

image