Kashmir Plugins

    • Hi,

      this is the original skin of the main screen. You can change size and position of the widgets but you cannot add widgets that are not defined in the code of the class.

      widget "text" is the original epg text, widget "text2" is the epg translation.


      Python-Quellcode

      1. #############################
      2. class translatorMain(Screen):
      3. #############################
      4. skin = """
      5. <screen position="center,80" size="1000,610" title="EPG Translator">
      6. <ePixmap position="0,0" size="1000,50" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/EPGTranslator/pic/translator.png" alphatest="blend" zPosition="1" />
      7. <ePixmap position="10,6" size="18,18" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/EPGTranslator/pic/buttons/blue.png" alphatest="blend" zPosition="2" />
      8. <ePixmap position="10,26" size="18,18" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/EPGTranslator/pic/buttons/yellow.png" alphatest="blend" zPosition="2" />
      9. <widget name="label" position="34,6" size="200,20" font="Regular;16" foregroundColor="#697178" backgroundColor="#FFFFFF" halign="left" transparent="1" zPosition="2" />
      10. <widget name="label2" position="34,26" size="200,20" font="Regular;16" foregroundColor="#697178" backgroundColor="#FFFFFF" halign="left" transparent="1" zPosition="2" />
      11. <widget render="Label" source="global.CurrentTime" position="740,0" size="240,50" font="Regular;24" foregroundColor="#697178" backgroundColor="#FFFFFF" halign="right" valign="center" zPosition="2">
      12. <convert type="ClockToText">Format:%H:%M:%S</convert>
      13. </widget>
      14. <widget name="flag" position="10,40" size="288,288" alphatest="blend" zPosition="1" />
      15. <widget name="flag2" position="10,325" size="288,288" alphatest="blend" zPosition="1" />
      16. <widget name="text" position="308,60" size="682,{size}" font="Regular;24" halign="left" zPosition="2" />
      17. <widget name="text2" position="308,345" size="682,270" font="Regular;24" halign="left" zPosition="1" />
      18. </screen>"""
      Alles anzeigen
    • Hi

      Thanks for the reply.

      so widget "text" is the original epg text, widget "text2" is the epg translation are the only options that can be used.

      if you could add aditional widget like "list" etc to the line of code. could you use "list" option to show origanal epg and then moving down the list change the epg translation?

      or can the "text" show a list with option??

      best regards
    • "text" and "text2" are ScrollLabels, not lists, they work for years now in all images and I do not change them:

      Python-Quellcode

      1. self["text"] = ScrollLabel("")
      2. self["text2"] = ScrollLabel("")

      But you can skin them. The skinable options depends on your image, e.g. the skinAttributes for "ScrollLabel" in OpenATV:


      Python-Quellcode

      1. for (attrib, value) in self.skinAttributes:
      2. if "itemHeight" in attrib:
      3. itemHeight = int(value)
      4. remove_attribs.append((attrib, value))
      5. if "scrollbarMode" in attrib:
      6. self.scrollbarmode = value
      7. remove_attribs.append((attrib, value))
      8. if "borderColor" in attrib or "borderWidth" in attrib:
      9. scrollbar_attribs.append((attrib,value))
      10. if "transparent" in attrib or "backgroundColor" in attrib:
      11. widget_attribs.append((attrib,value))
      12. if "scrollbarSliderForegroundColor" in attrib:
      13. scrollbar_attribs.append((attrib,value))
      14. remove_attribs.append((attrib, value))
      15. if "scrollbarSliderBorderColor" in attrib:
      16. scrollbar_attribs.append((attrib,value))
      17. remove_attribs.append((attrib, value))
      18. if "scrollbarSliderPicture" in attrib:
      19. scrollbar_attribs.append((attrib,value))
      20. remove_attribs.append((attrib, value))
      21. if "scrollbarBackgroundPicture" in attrib:
      22. scrollbar_attribs.append((attrib,value))
      23. remove_attribs.append((attrib, value))
      24. if "scrollbarWidth" in attrib:
      25. scrollbarWidth = int(value)
      26. remove_attribs.append((attrib, value))
      27. if "scrollbarSliderBorderWidth" in attrib:
      28. scrollbarBorderWidth = int(value)
      29. remove_attribs.append((attrib, value))
      30. if "split" in attrib:
      31. self.split = int(value)
      32. if self.split:
      33. self.right_text = eLabel(self.instance)
      34. if "colposition" in attrib:
      35. self.column = int(value)
      36. if "dividechar" in attrib:
      37. self.splitchar = value
      Alles anzeigen
    • Thanks again for your reply.

      I searched though lots of skin from different images and didnt find many finds for ScrollLabel. I tried but cant seam anyway to show more then one text, maybe someone could show me a example to try??

      Im trying to show more then one epg text in, I thought something my channels list that show a list of whats on one channel for the day and then going down the list would change this epg text2

      Is this something that could be done ??

      kind regards :thumbup: