From: kos Date: Fri, 27 Jan 2012 08:16:26 +0000 (+0900) Subject: modify skin of plugins. X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=commitdiff_plain;h=ea2f1192f5595f67aa225f90767a3037b2c119b1 modify skin of plugins. --- diff --git a/lib/python/Plugins/Extensions/VuplusEvent/plugin.py b/lib/python/Plugins/Extensions/VuplusEvent/plugin.py index 941fecb..1f03a99 100755 --- a/lib/python/Plugins/Extensions/VuplusEvent/plugin.py +++ b/lib/python/Plugins/Extensions/VuplusEvent/plugin.py @@ -30,29 +30,20 @@ GENUINE_MESSAGES={ } class VuplusAuthenticity(Screen, ConfigListScreen): - def __init__(self,session): - if session.desktop.size().width() > 720: - self.skin = """ - - - - - - - - - """ + skin = """ + + + + + + - else: - self.skin=""" - - - - - """ + + """ + def __init__(self,session): Screen.__init__(self,session) self.session = session self["shortcuts"] = ActionMap(["ShortcutActions", "SetupActions" ], @@ -161,12 +152,12 @@ class VuplusAuthenticity(Screen, ConfigListScreen): class MessageBoxGenuine(MessageBox): skin = """ - + - + # this should be factored out into some helper code, but currently demonstrates applets. from enigma import eSize, ePoint diff --git a/lib/python/Plugins/Extensions/WebBrowser/Makefile.am b/lib/python/Plugins/Extensions/WebBrowser/Makefile.am index 11f2495..773ae06 100755 --- a/lib/python/Plugins/Extensions/WebBrowser/Makefile.am +++ b/lib/python/Plugins/Extensions/WebBrowser/Makefile.am @@ -3,6 +3,8 @@ installdir = $(pkglibdir)/python/Plugins/Extensions/WebBrowser SUBDIRS = meta keymap install_PYTHON = \ + mp_wb_background.png \ + mp_wb_buttons.png \ __init__.py \ plugin.py diff --git a/lib/python/Plugins/Extensions/WebBrowser/desc/Makefile.am b/lib/python/Plugins/Extensions/WebBrowser/desc/Makefile.am new file mode 100644 index 0000000..b3f8353 --- /dev/null +++ b/lib/python/Plugins/Extensions/WebBrowser/desc/Makefile.am @@ -0,0 +1,3 @@ +installdir = $(datadir)/enigma2 + +install_DATA = rc_wb_desc.png diff --git a/lib/python/Plugins/Extensions/WebBrowser/desc/rc_wb_desc.png b/lib/python/Plugins/Extensions/WebBrowser/desc/rc_wb_desc.png new file mode 100644 index 0000000..921bf12 Binary files /dev/null and b/lib/python/Plugins/Extensions/WebBrowser/desc/rc_wb_desc.png differ diff --git a/lib/python/Plugins/Extensions/WebBrowser/mp_wb_background.png b/lib/python/Plugins/Extensions/WebBrowser/mp_wb_background.png new file mode 100644 index 0000000..890c118 Binary files /dev/null and b/lib/python/Plugins/Extensions/WebBrowser/mp_wb_background.png differ diff --git a/lib/python/Plugins/Extensions/WebBrowser/mp_wb_buttons.png b/lib/python/Plugins/Extensions/WebBrowser/mp_wb_buttons.png new file mode 100644 index 0000000..bfa1e61 Binary files /dev/null and b/lib/python/Plugins/Extensions/WebBrowser/mp_wb_buttons.png differ diff --git a/lib/python/Plugins/Extensions/WebBrowser/plugin.py b/lib/python/Plugins/Extensions/WebBrowser/plugin.py index 344f698..6d9e8ea 100644 --- a/lib/python/Plugins/Extensions/WebBrowser/plugin.py +++ b/lib/python/Plugins/Extensions/WebBrowser/plugin.py @@ -16,9 +16,15 @@ from urllib import quote, unquote_plus, unquote from urllib2 import Request, URLError, urlopen as urlopen2 from httplib import HTTPConnection, CannotSendRequest, BadStatusLine, HTTPException +from Screens.Screen import Screen +from Screens.ChoiceBox import ChoiceBox +from Screens.MessageBox import MessageBox +from Screens.DefaultWizard import DefaultWizard +from Screens.InfoBarGenerics import InfoBarNotifications + from Components.Button import Button from Components.Label import Label -from Components.Pixmap import Pixmap +from Components.Pixmap import Pixmap, MovingPixmap from Components.Language import language from Components.Sources.List import List from Components.ConfigList import ConfigListScreen @@ -27,13 +33,10 @@ from Components.ActionMap import NumberActionMap, ActionMap from Components.ServiceEventTracker import ServiceEventTracker from Components.config import config, ConfigSelection, getConfigListEntry, ConfigSlider -from Screens.Screen import Screen -from Screens.ChoiceBox import ChoiceBox -from Screens.MessageBox import MessageBox -from Screens.DefaultWizard import DefaultWizard -from Screens.InfoBarGenerics import InfoBarNotifications +from Tools.Directories import resolveFilename, SCOPE_PLUGINS +from Tools.LoadPixmap import LoadPixmap -from enigma import eTimer, eServiceReference, iPlayableService, fbClass, eRCInput, eConsoleAppContainer, getDesktop +from enigma import eTimer, eServiceReference, iPlayableService, fbClass, eRCInput, eConsoleAppContainer, getDesktop, ePicLoad HTTPConnection.debuglevel = 1 @@ -89,11 +92,13 @@ def wb_islock(): class VuPlayer(Screen, InfoBarNotifications): size = getDesktop(0).size() - position_params = size.width() > 750 and (620) or (480) + wb_bgr = resolveFilename(SCOPE_PLUGINS, "Extensions/WebBrowser/mp_wb_background.png") + wb_btn = resolveFilename(SCOPE_PLUGINS, "Extensions/WebBrowser/mp_wb_buttons.png") + position_params = size.width() > 750 and (620, wb_bgr, wb_btn) or (480, wb_bgr, wb_btn) skin = """ - - + + Gauge @@ -407,24 +412,24 @@ class VuPlayerService: conn.close() class BrowserLauncher(ConfigListScreen, Screen): - size = getDesktop(0).size() - position_params = size.width() > 750 and (309,498, 0,150, 0,455) or (618,320, 312,5, 0,180) skin= """ - - - + + + - - + + - - + + - """ % position_params + """ def __init__(self, session): Screen.__init__(self, session) + + self.session = session self.list = [] ConfigListScreen.__init__(self, self.list) diff --git a/lib/python/Plugins/SystemPlugins/Blindscan/plugin.py b/lib/python/Plugins/SystemPlugins/Blindscan/plugin.py index 93966bc..3ab1368 100644 --- a/lib/python/Plugins/SystemPlugins/Blindscan/plugin.py +++ b/lib/python/Plugins/SystemPlugins/Blindscan/plugin.py @@ -19,22 +19,20 @@ from Tools.Directories import resolveFilename, SCOPE_DEFAULTPARTITIONMOUNTDIR, S from enigma import eTimer, eDVBFrontendParametersSatellite, eComponentScan, eDVBSatelliteEquipmentControl, eDVBFrontendParametersTerrestrial, eDVBFrontendParametersCable, eConsoleAppContainer, eDVBResourceManager, getDesktop class Blindscan(ConfigListScreen, Screen): - size = getDesktop(0).size() - position_params = size.width() > 750 and ('center') or ('140') skin = """ - - - - + + + + - - - + + + - - + + - """ % position_params + """ def __init__(self, session): Screen.__init__(self, session) diff --git a/lib/python/Plugins/SystemPlugins/CrashReport/plugin.py b/lib/python/Plugins/SystemPlugins/CrashReport/plugin.py index 1a43319..f2fb0cb 100644 --- a/lib/python/Plugins/SystemPlugins/CrashReport/plugin.py +++ b/lib/python/Plugins/SystemPlugins/CrashReport/plugin.py @@ -79,45 +79,22 @@ def loadConfig(): g_default_machineinfo = False class CrashlogReportConfiguration(Screen, ConfigListScreen): - skin_list = {} - skin_list["hd"] = """ - - - - - - - Format:%H:%M - - - - - - - - - - - - - """ - skin_list["sd"] = """ - - - - - - - + skin = """ + + + + + + + + + - - + + """ - size = getDesktop(0).size() - skin = skin_list[size.width() > 750 and "hd" or "sd"] - def __init__(self, session): Screen.__init__(self, session) self.session = session diff --git a/lib/python/Plugins/SystemPlugins/FPGAUpgrade/plugin.py b/lib/python/Plugins/SystemPlugins/FPGAUpgrade/plugin.py index 87ecedf..5fd7a7e 100644 --- a/lib/python/Plugins/SystemPlugins/FPGAUpgrade/plugin.py +++ b/lib/python/Plugins/SystemPlugins/FPGAUpgrade/plugin.py @@ -122,16 +122,14 @@ class FPGAUpgradeManager: return str(self.fu.errmsg) class UpgradeStatus(Screen): - size = getDesktop(0).size() - position_params = size.width() > 750 and (' ') or ('backgroundColor=\"blue\"') skin = """ - + - - + + - """ % position_params + """ def __init__(self, session, parent, timeout = 20): Screen.__init__(self,session) @@ -157,6 +155,8 @@ class UpgradeStatus(Screen): self.slider = Slider(0, 100) self["slider"] = self.slider + self.setTitle("FPGA Upgrade Status") + self.parent = parent self.timer_check_progress = eTimer() self.timer_check_progress.callback.append(self.callbackDoCheckProgress) @@ -211,22 +211,20 @@ class UpgradeStatus(Screen): self.close() class FPGAUpgrade(Screen): - size = getDesktop(0).size() - position_params = size.width() > 750 and ('center', 440) or ('120', 420) skin = """ - - - - + + + + - - - + + + - - + + - """ % position_params + """ def __init__(self, session): Screen.__init__(self, session) diff --git a/lib/python/Plugins/SystemPlugins/Fancontrol/plugin.py b/lib/python/Plugins/SystemPlugins/Fancontrol/plugin.py index e3d3c52..d28fe8e 100644 --- a/lib/python/Plugins/SystemPlugins/Fancontrol/plugin.py +++ b/lib/python/Plugins/SystemPlugins/Fancontrol/plugin.py @@ -18,14 +18,17 @@ config.plugins.fancontrols.fanontime = ConfigInteger(default = 5, limits = (1, 1 config.plugins.fancontrols.fanofftime = ConfigInteger(default = 60, limits = (1, 100)) class FancontrolConfiguration(Screen, ConfigListScreen): - skin = """ - - - - - - - """ + skin = """ + + + + + + + + + + """ def __init__(self, session): Screen.__init__(self, session) self.session = session diff --git a/lib/python/Plugins/SystemPlugins/FirmwareUpgrade/plugin.py b/lib/python/Plugins/SystemPlugins/FirmwareUpgrade/plugin.py index f506ee6..7834f06 100644 --- a/lib/python/Plugins/SystemPlugins/FirmwareUpgrade/plugin.py +++ b/lib/python/Plugins/SystemPlugins/FirmwareUpgrade/plugin.py @@ -210,26 +210,14 @@ class FirmwareUpgradeManager: return str(self.fu.errmsg) class UpgradeStatus(Screen): - ''' skin = """ - - - - - - - """ - ''' - size = getDesktop(0).size() - position_params = size.width() > 750 and (' ') or ('backgroundColor=\"blue\"') - skin = """ - + - - + + - """ % position_params + """ def __init__(self, session, parent, firmware, datafile, device): Screen.__init__(self,session) @@ -316,14 +304,15 @@ class UpgradeStatus(Screen): self.callback("Reboot now for a successful upgrade.", True) self.session.openWithCallback(self.cbConfirmExit, MessageBox, _("Do you want to remove binary data?"), MessageBox.TYPE_YESNO, timeout = 10, default = False) -class Filebrowser(Screen): +class FUFilebrowser(Screen): skin = """ - - - - + + + + - + + """ @@ -331,7 +320,7 @@ class Filebrowser(Screen): Screen.__init__(self, session) self.session = session - self["key_blue"] = StaticText(_("Download the firmware (latest)")) + self["key_blue"] = StaticText(_("Download")) self["status"] = StaticText(_(" ")) self["file_list"] = FileList("/", matchingPattern = "^.*") @@ -357,7 +346,7 @@ class Filebrowser(Screen): self.setTitle(firmware.upper() + " File Browser") def resetGUI(self): - self["status"].setText("Select to press OK, Exit to press Cancel.") + self["status"].setText("Select to press OK, Exit to press Cancel.\nPress the BLUE button to download the latest firmware.") def setCallback(self, func): self.callback = func @@ -545,14 +534,14 @@ class Filebrowser(Screen): class FirmwareUpgrade(Screen, ConfigListScreen): skin = """ - - + + - - + + - - + + """ @@ -664,7 +653,7 @@ class FirmwareUpgrade(Screen, ConfigListScreen): fbs.setCallback(self.cbFinishedUpgrade) def doFileOpen(self): - fbs = self.session.open(Filebrowser, self, self._item_firmware.value) + fbs = self.session.open(FUFilebrowser, self, self._item_firmware.value) fbs.setCallback(self.cbSetStatus) def keyLeft(self): @@ -677,6 +666,8 @@ class FirmwareUpgrade(Screen, ConfigListScreen): self.setupStatus() def keyRight(self): + if self.rebootLock: + return global fwlist if fwlist is None: return diff --git a/lib/python/Plugins/SystemPlugins/HDMICEC/plugin.py b/lib/python/Plugins/SystemPlugins/HDMICEC/plugin.py index 9603d14..329c85a 100755 --- a/lib/python/Plugins/SystemPlugins/HDMICEC/plugin.py +++ b/lib/python/Plugins/SystemPlugins/HDMICEC/plugin.py @@ -27,33 +27,22 @@ from os import system from Components.InputDevice import iInputDevices class HdmiCecPlugin(Screen,ConfigListScreen): - def __init__(self, session): - if session.desktop.size().width() > 720: - self.skin = """ - - - - - - - - - - - """ - else: - self.skin = """ - - - - - - - - - + skin = """ + + + + + + + + + + + - """ + + """ + def __init__(self, session): Screen.__init__(self, session) config.hdmicec.input_address = ConfigText(default = "0", visible_width = 50, fixed_size = False) config.hdmicec.input_value1 = ConfigText(default = "0", visible_width = 50, fixed_size = False) diff --git a/lib/python/Plugins/SystemPlugins/LEDBrightnessSetup/plugin.py b/lib/python/Plugins/SystemPlugins/LEDBrightnessSetup/plugin.py index f5cc4fc..9d29a46 100755 --- a/lib/python/Plugins/SystemPlugins/LEDBrightnessSetup/plugin.py +++ b/lib/python/Plugins/SystemPlugins/LEDBrightnessSetup/plugin.py @@ -57,17 +57,20 @@ class LEDSetup: ledsetup = LEDSetup() class LEDBrightnessSetup(Screen,ConfigListScreen): - skin = """ - - - - - - - - + skin = """ + + + + + + + + + + - """ + + """ def __init__(self,session): Screen.__init__(self,session) diff --git a/lib/python/Plugins/SystemPlugins/ManualFancontrol/plugin.py b/lib/python/Plugins/SystemPlugins/ManualFancontrol/plugin.py index 8a0be65..d38ed8c 100755 --- a/lib/python/Plugins/SystemPlugins/ManualFancontrol/plugin.py +++ b/lib/python/Plugins/SystemPlugins/ManualFancontrol/plugin.py @@ -9,15 +9,18 @@ from Plugins.SystemPlugins.ManualFancontrol.InstandbyOn import instandbyon import NavigationInstance class ManualFancontrol(Screen,ConfigListScreen): - skin = """ - - - - - - - - """ + skin = """ + + + + + + + + + + + """ def __init__(self,session): Screen.__init__(self,session) diff --git a/lib/python/Plugins/SystemPlugins/RemoteControlCode/plugin.py b/lib/python/Plugins/SystemPlugins/RemoteControlCode/plugin.py index 83df8b3..fccb6a6 100755 --- a/lib/python/Plugins/SystemPlugins/RemoteControlCode/plugin.py +++ b/lib/python/Plugins/SystemPlugins/RemoteControlCode/plugin.py @@ -39,14 +39,17 @@ class RemoteControlCodeInit: return False class RemoteControlCode(Screen,ConfigListScreen,RemoteControlCodeInit): - skin = """ - - - - - - - """ + skin = """ + + + + + + + + + + """ def __init__(self,session): Screen.__init__(self,session) @@ -114,21 +117,21 @@ class RemoteControlCode(Screen,ConfigListScreen,RemoteControlCodeInit): quitMainloop(3) class MessageBoxConfirmCode(MessageBox): - skin = """ - - - - - - - + skin = """ + + + + + + + # this should be factored out into some helper code, but currently demonstrates applets. from enigma import eSize, ePoint -orgwidth = self.instance.size().width() +orgwidth = self.instance.size().width() orgheight = self.instance.size().height() -orgpos = self.instance.position() -textsize = self["text"].getSize() +orgpos = self.instance.position() +textsize = self["text"].getSize() # y size still must be fixed in font stuff... textsize = (textsize[0] + 50, textsize[1] + 50) @@ -141,7 +144,6 @@ if (280 > wsizex): wsizex = 280 wsize = (wsizex, wsizey) - # resize self.instance.resize(eSize(*wsize)) @@ -157,8 +159,9 @@ self["list"].instance.resize(eSize(*listsize)) newwidth = wsize[0] newheight = wsize[1] self.instance.move(ePoint(orgpos.x() + (orgwidth - newwidth)/2, orgpos.y() + (orgheight - newheight)/2)) - - """ + + + """ def __init__(self, session, replytext_1="", replytext_2="", type = MessageBox.TYPE_YESNO, timeout = -1, close_on_any_key = False, default = True, enable_input = True, msgBoxID = None): self.replytext_1 = replytext_1 diff --git a/lib/python/Plugins/SystemPlugins/UI3DSetup/plugin.py b/lib/python/Plugins/SystemPlugins/UI3DSetup/plugin.py index 645b829..d5ce741 100755 --- a/lib/python/Plugins/SystemPlugins/UI3DSetup/plugin.py +++ b/lib/python/Plugins/SystemPlugins/UI3DSetup/plugin.py @@ -12,14 +12,17 @@ config.plugins.UI3DSetup.znorm = ConfigInteger(default = 0) config.plugins.UI3DSetup.setmode = ConfigSelection(choices = setmodelist, default = "mode1") class UI3DSetupScreen(Screen, ConfigListScreen): - skin = """ + skin = """ - - - - - - """ + + + + + + + + + """ def __init__(self, session): self.skin = UI3DSetupScreen.skin diff --git a/lib/python/Plugins/SystemPlugins/UIPositionSetup/plugin.py b/lib/python/Plugins/SystemPlugins/UIPositionSetup/plugin.py index 22b4170..25c7f92 100755 --- a/lib/python/Plugins/SystemPlugins/UIPositionSetup/plugin.py +++ b/lib/python/Plugins/SystemPlugins/UIPositionSetup/plugin.py @@ -46,19 +46,22 @@ class UIPositionSetupInit: uipositionsetupinit = UIPositionSetupInit() class UIPositionSetup(Screen, ConfigListScreen, UIPositionSetupInit): + skin = """ + + + " + + + + + + + """ def __init__(self,session): - size_w = session.desktop.size().width() - size_h = session.desktop.size().height() - xpos = (size_w-500)/2 - ypos = (size_h-300)/2 - self.skin="" - self.skin += "" - self.skin += "" - self.skin += "" - self.skin += "" - self.skin += "" - self.skin += "" - self.skin += "" + w,h = session.desktop.size().width(), session.desktop.size().height() + cw,ch = w/2, h/2 + # btn_red btn_green lb_red lb_green config + self.skin = self.skin % (w,h, cw-190,ch-110, cw+50,ch-110, cw-190,ch-110, cw+50,ch-110, cw-250,ch-50) Screen.__init__(self,session) self.session = session @@ -71,6 +74,7 @@ class UIPositionSetup(Screen, ConfigListScreen, UIPositionSetupInit): }, -2) self.list = [] ConfigListScreen.__init__(self, self.list,session = self.session) + self["key_red"] = StaticText(_("Cancel")) self["key_green"] = StaticText(_("Save")) self["current"] = StaticText(_(" ")) @@ -79,19 +83,19 @@ class UIPositionSetup(Screen, ConfigListScreen, UIPositionSetupInit): def createSetup(self): self.list = [] - left = config.plugins.UIPositionSetup.dst_left.value - width = config.plugins.UIPositionSetup.dst_width.value - top = config.plugins.UIPositionSetup.dst_top.value + left = config.plugins.UIPositionSetup.dst_left.value + width = config.plugins.UIPositionSetup.dst_width.value + top = config.plugins.UIPositionSetup.dst_top.value height = config.plugins.UIPositionSetup.dst_height.value - self.dst_left = ConfigSlider(default = left, increment = 5, limits = (0, 720)) - self.dst_width = ConfigSlider(default = width, increment = 5, limits = (0, 720)) - self.dst_top = ConfigSlider(default = top, increment = 5, limits = (0, 576)) + self.dst_left = ConfigSlider(default = left, increment = 5, limits = (0, 720)) + self.dst_width = ConfigSlider(default = width, increment = 5, limits = (0, 720)) + self.dst_top = ConfigSlider(default = top, increment = 5, limits = (0, 576)) self.dst_height = ConfigSlider(default = height, increment = 5, limits = (0, 576)) - self.dst_left_entry = getConfigListEntry(_("left"), self.dst_left) - self.dst_width_entry = getConfigListEntry(_("width"), self.dst_width) - self.dst_top_entry = getConfigListEntry(_("top"), self.dst_top) + self.dst_left_entry = getConfigListEntry(_("left"), self.dst_left) + self.dst_width_entry = getConfigListEntry(_("width"), self.dst_width) + self.dst_top_entry = getConfigListEntry(_("top"), self.dst_top) self.dst_height_entry = getConfigListEntry(_("height"), self.dst_height) self.list.append(self.dst_left_entry) diff --git a/lib/python/Plugins/SystemPlugins/WirelessLanSetup/plugin.py b/lib/python/Plugins/SystemPlugins/WirelessLanSetup/plugin.py index 3b6a214..f3e5920 100755 --- a/lib/python/Plugins/SystemPlugins/WirelessLanSetup/plugin.py +++ b/lib/python/Plugins/SystemPlugins/WirelessLanSetup/plugin.py @@ -29,37 +29,22 @@ from Tools.Directories import fileExists import time class WlanSelection(Screen,HelpableScreen): - def __init__(self, session): - if session.desktop.size().width() > 720: - self.skin = """ - - - - - - - Format:%H:%M - - - - - - - - - """ - else: - self.skin = """ - - - - - - - - + skin = """ + + + + + + + + + + + - """ + + """ + def __init__(self, session): Screen.__init__(self,session) HelpableScreen.__init__(self) self.mainmenu = self.getWlandevice() @@ -137,37 +122,22 @@ class WlanSelection(Screen,HelpableScreen): iNetwork.stopGetInterfacesConsole() class WlanSetup(Screen,HelpableScreen): - def __init__(self, session, ifaces): - if session.desktop.size().width() > 720: - self.skin = """ - - - - - - - Format:%H:%M - - - - - - - - - """ - else: - self.skin = """ - - - - - - - - + skin = """ + + + + + + + + + + + - """ + + """ + def __init__(self, session, ifaces): Screen.__init__(self, session) HelpableScreen.__init__(self) self.session = session @@ -322,47 +292,25 @@ wlanconfig.gateway = ConfigIP([0,0,0,0]) selectap = None class WlanConfig(Screen, ConfigListScreen, HelpableScreen): - def __init__(self, session, iface): - if session.desktop.size().width() > 720: - self.skin = """ - - - - - - - Format:%H:%M - - - - - - - - - - - - - - - """ - else: - self.skin = """ - - - - - - - + skin = """ + + + + + + + + + - """ + + """ + def __init__(self, session, iface): Screen.__init__(self,session) self.session = session self["key_red"] = StaticText(_("Close")) @@ -922,51 +870,30 @@ class WlanConfig(Screen, ConfigListScreen, HelpableScreen): self.wpaphraseconsole.kill(name) class WlanScanAp(Screen,HelpableScreen): - def __init__(self, session, iface): - if session.desktop.size().width() > 720: - self.skin = """ - - - - - - - Format:%H:%M - - - - - - - - - - - - - - - - """ - else: - self.skin = """ - - - - - - - - - - + skin = """ + + + + + + + + + + + + + + - - + + - """ + + """ + def __init__(self, session, iface): Screen.__init__(self,session) HelpableScreen.__init__(self) self.session = session @@ -1560,28 +1487,15 @@ class NetworkAdapterTest(Screen): callback(self.apState) class Wlanstatus(Screen): + skin = """ + + + + + + + """ def __init__(self, session,iface): - if session.desktop.size().width() > 720: - self.skin = """ - - - - - - - Format:%H:%M - - - - - """ - else: - self.skin = """ - - - - - """ Screen.__init__(self,session) self.session = session self.iface = iface