Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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)]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement