print "Attachment selected", choice[1].getFilename()
#showMessageBox(self.session)
-class MailList(MenuList, HTMLComponent, GUIComponent):
- def __init__(self, list):
- MenuList.__init__(self, list)
- GUIComponent.__init__(self)
- self.l = eListboxPythonMultiContent()
- self.list = list
- self.l.setList(list)
+class MailList(MenuList):
+ def __init__(self, list, enableWrapAround = False):
+ MenuList.__init__(self, list, enableWrapAround, eListboxPythonMultiContent())
self.l.setFont(0, gFont("Regular", 18))
self.l.setFont(1, gFont("Regular", 20))
- GUI_WIDGET = eListbox
-
def postWidgetCreate(self, instance):
- instance.setContent(self.l)
+ MenuList.postWidgetCreate(self, instance)
instance.setItemHeight(60)
class MessageHeader(object):
from Screens.InputBox import InputBox
from Screens.MessageBox import MessageBox
from Components.ActionMap import ActionMap
-from Components.GUIComponent import GUIComponent
-from Components.HTMLComponent import HTMLComponent
from Components.MultiContent import MultiContentEntryText
from enigma import eServiceReference, eListboxPythonMultiContent, eListbox, eServiceCenter, gFont, iServiceInformation, eServiceReference
if newTag >=0:
self.addTag(newTag.strip().replace(" ","_"))
-class TagMenuList(MenuList, HTMLComponent, GUIComponent):
- def __init__(self, list):
- MenuList.__init__(self,list)
- GUIComponent.__init__(self)
- self.l = eListboxPythonMultiContent()
- self.list = list
- self.l.setList(list)
- self.l.setFont(0, gFont("Regular", 20))
- self.l.setFont(1, gFont("Regular", 25))
-
- GUI_WIDGET = eListbox
-
- def postWidgetCreate(self, instance):
- instance.setContent(self.l)
- instance.setItemHeight(25)
+class TagMenuList(MenuList):
+ def __init__(self, list, enableWrapAround = False):
+ MenuList.__init__(self, list, enableWrapAround, eListboxPythonMultiContent())
+ self.l.setFont(0, gFont("Regular", 20))
+ self.l.setFont(1, gFont("Regular", 25))
+
+ def postWidgetCreate(self, instance):
+ MenuList.postWidgetCreate(self, instance)
+ instance.setItemHeight(25)
def main(session, service, **kwargs):
try:
from Components.ActionMap import ActionMap
from Components.ScrollLabel import ScrollLabel
from Components.Label import Label
-from Components.GUIComponent import GUIComponent
from Components.MenuList import MenuList
-from Components.HTMLComponent import HTMLComponent
-from Components.GUIComponent import GUIComponent
from Components.MultiContent import MultiContentEntryText
from enigma import eListboxPythonMultiContent, eListbox, gFont
}, -1)
###############################################################################
-class StreamMenu(MenuList, HTMLComponent, GUIComponent):
- def __init__(self, list):
- MenuList.__init__(self,list)
- GUIComponent.__init__(self)
- self.l = eListboxPythonMultiContent()
- self.list = list
- self.l.setList(list)
+class StreamMenu(MenuList):
+ def __init__(self, list, enableWrapAround = False):
+ MenuList.__init__(self, list, enableWrapAround, eListboxPythonMultiContent())
self.l.setFont(0, gFont("Regular", 20))
self.l.setFont(1, gFont("Regular", 18))
- GUI_WIDGET = eListbox
-
def postWidgetCreate(self, instance):
- instance.setContent(self.l)
+ MenuList.postWidgetCreate(self, instance)
instance.setItemHeight(50)
def buildList(self,listnew):
return TrafficInfoItem(street,direction,details)
class ItemList(MenuList):
- def __init__(self, items):
- MenuList.__init__(self,items)
- self.l = eListboxPythonMultiContent()
+ def __init__(self, items, enableWrapAround = False):
+ MenuList.__init__(self, items, enableWrapAround, eListboxPythonMultiContent())
self.l.setFont(0, gFont("Regular", 20))
self.l.setFont(1, gFont("Regular", 18))
- GUI_WIDGET = eListbox
def getCurrentEntry(self):
return self.l.getCurrentSelection()
from enigma import loadPNG\r
from enigma import gFont\r
### Picturelist\r
-from Components.HTMLComponent import HTMLComponent\r
-from Components.GUIComponent import GUIComponent\r
from Screens.Screen import Screen\r
from Screens.MessageBox import MessageBox\r
from Screens.InputBox import InputBox\r
self.filelist.pageUp() \r
self.updateInfoPanel()\r
else:\r
+\r
self.slideshowlist.pageUp()\r
def rightUp(self):\r
if self.currList is "filelist" :\r
###################\r
\r
##################\r
-class PictureList(MenuList, HTMLComponent, GUIComponent):\r
- def __init__(self, directory, matchingPattern = None):\r
- GUIComponent.__init__(self)\r
- self.l = eListboxPythonMultiContent()\r
+class PictureList(MenuList):\r
+ def __init__(self, directory, matchingPattern = None, enableWrapAround = False):\r
+ MenuList.__init__(self, None, enableWrapAround, eListboxPythonMultiContent())\r
self.showDirectories = True\r
self.showFiles = True\r
self.isTop = False\r
self.changeDir(directory)\r
self.l.setFont(0, gFont("Regular", 18))\r
self.currentDir = directory\r
- \r
+\r
def getCurrentDir(self):\r
return self.currentDir\r
\r
def getServiceRef(self):\r
return self.getSelection()[0]\r
\r
- GUI_WIDGET = eListbox\r
-\r
def postWidgetCreate(self, instance):\r
- instance.setContent(self.l)\r
+ MenuList.postWidgetCreate(self, instance)\r
instance.setItemHeight(23)\r
\r
def getPictureEntryComponent(self,name, absolute, isDir):\r