PEP8 double aggressive E301 ~ E306

This commit is contained in:
persianpros
2021-04-14 00:13:51 +04:30
parent 334f3e0ed9
commit ab9168b43f
56 changed files with 183 additions and 36 deletions

View File

@@ -39,22 +39,27 @@ else:
from Screens.Console import Console
LinkNeoBoot = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot'
def getDS():
s = getDesktop(0).size()
return (s.width(), s.height())
def isFHD():
desktopSize = getDS()
return desktopSize[0] == 1920
def isHD():
desktopSize = getDS()
return desktopSize[0] >= 1280 and desktopSize[0] < 1920
def isUHD():
desktopSize = getDS()
return desktopSize[0] >= 1920 and desktopSize[0] < 3840
class InstallImage(Screen, ConfigListScreen):
if isFHD():
skin = """<screen position="130,120" size="1650,875" title="NeoBoot - Installation">