SharkyEXE icon

Untitled

SharkyEXE | PRO | 08/12/18 05:18:35 AM UTC | 0 ⭐ | 772 👁️ | Never ⏰ | []
text |

880 B

|

None

|

0 👍

/

0 👎

from Plugins.Plugin import PluginDescriptor
from Screens.Screen import Screen
from enigma import eTimer
 SKIN = """
<screen position="40,40" size="72,72" zPosition="-6">
	<ePixmap position="0,0" size="72,72" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/BlockButton_v2/block.png" />
 </screen>"""
 class BlockButton2(Screen):
	def __init__(self, session):
		Screen.__init__(self, session)
		self.skin = SKIN
		self.hide_time = eTimer()
		self.hide_time.callback.append(self.setHide)
		self.hide_time.startLongTimer(2) # pause in seconds
 	def setHide(self):
		self.hide_time.stop()
		self.close()
 def main(session, **kwargs):
	session.open(BlockButton2)
 def Plugins(**kwargs):
	return [PluginDescriptor(name=_("BlockButton2"), description=_("Do Not Show the 'BlockButton2' on the screen"), where=PluginDescriptor.WHERE_PLUGINMENU, icon = "plugin.png", fnc=main)]

Comments