Jump to content


canymed112

Member Since 21 Jun 2012
Offline Last Active 02 Aug 2013 10:45
-----

Topics I've Started

enigma.py decompilied python file

10 June 2013 - 19:30

Hello, where can i find the decompiled python files like enigma.py, which is located in usr/lib/enigma2/python/?


configuration lists offset

14 May 2013 - 11:58

Hi, i read in an image for the dm500hd that its possible to set left/right offsets for configuration lists.

It looks so:

 

42hzrkna.jpg

 

Is that already possible with openpli 3.0 at my xtrend receiver and other receivers or isn't it possible yet?

 

I think it would be great if someone can make that possible because it looks much better and something i would also change

is to change the both textsizes unattached from the other, because the right one is always smaller than the left one.

 

regards

canymed112


Problem with PluginList

24 March 2013 - 21:13

Hi

I modified the PluginList.py a bit, that I can use Alphablend.

Now, the PluginBrowser is working perfect, but if I choose Downloading Plugins or Delete Plugins, I got a GS.

I'm a beginner in python, so don't laught about me :D

Can someone find, what is causing the issue?

from MenuList import MenuList
from Tools.Directories import resolveFilename, SCOPE_SKIN_IMAGE
from enigma import RT_HALIGN_LEFT, eListboxPythonMultiContent, gFont
from Tools.LoadPixmap import LoadPixmap
def PluginEntryComponent(plugin):
res = [ plugin ]

if plugin.icon is None:
  png = LoadPixmap(resolveFilename(SCOPE_SKIN_IMAGE, "MetrixFullHD/pluginbrowser/plugin.png"))
else:
  png = plugin.icon

res.append((eListboxPythonMultiContent.TYPE_TEXT, 144,  0, 632, 42, 0, RT_HALIGN_LEFT, plugin.name))
res.append((eListboxPythonMultiContent.TYPE_TEXT, 144, 37, 632, 42, 1, RT_HALIGN_LEFT, plugin.description))
res.append((eListboxPythonMultiContent.TYPE_PIXMAP_ALPHABLEND, 24, 20, 100, 40, png))

return res
def PluginCategoryComponent(name, png):
res = [ name ]

res.append((eListboxPythonMultiContent.TYPE_TEXT, 124, 0, 1116, 80, 0, RT_HALIGN_LEFT, name))
res.append((eListboxPythonMultiContent.TYPE_PIXMAP_ALPHABLEND, 24, 0, 80, 80, png))

return res
def PluginDownloadComponent(plugin, name, version=None):
res = [ name ]

if plugin.icon is None:
  png = LoadPixmap(resolveFilename(SCOPE_SKIN_IMAGE, "MetrixFullHD/pluginbrowser/plugin.png"))
else:
  png = plugin.icon
if version:
  if "+git" in version:
   # remove git "hash"
   version = "+".join(version.split("+")[:2])
  elif version.startswith('experimental-'):
   version = version[13:]
  name += "  (" + version + ")"

res.append((eListboxPythonMultiContent.TYPE_TEXT, 124,  0, 1116, 42, 0, RT_HALIGN_LEFT, name))
res.append((eListboxPythonMultiContent.TYPE_TEXT, 124, 37, 1116, 42, 1, RT_HALIGN_LEFT, plugin.description))
res.append((eListboxPythonMultiContent.TYPE_PIXMAP_ALPHABLEND, 24, 0, 80, 80, png))

return res
class PluginList(MenuList):
def __init__(self, list, selection = 0, enableWrapAround=False):
  MenuList.__init__(self, list, enableWrapAround, eListboxPythonMultiContent)
  self.l.setFont(0, gFont("RegularSemilight", 34))
  self.l.setFont(1, gFont("Regular", 30))
  self.l.setItemHeight(80)
  self.selection = selection

def postWidgetCreate(self, instance):
  MenuList.postWidgetCreate(self, instance)
  self.moveToIndex(self.selection)

greets
canymed112

Protect py files against SoftwareUpdate

23 March 2013 - 18:51

Hi

Is there a possibility the protect my modified py files from the screens and components directory,
that they will not be overwritten by an update?

greets
canymed112

ChannelSelection Greenscreen

23 March 2013 - 11:03

Hi

I downloaded the ChannelSelection.py from here: http://github.com/pl...nelSelection.py
but when I copy the py to the screen directory and restart the gui, I got a greenscreen.

Is this not the right .py? Where can I find the right one?

greets
canymed112