Beiträge von tracer


    How can I use eTimer here ? to update infos??

    It is inside infobar section in Nemesis.extended.../skin.xml





    Please can u give one more example with use eLabel in InfoBar Skin Section ?

    Yes,


    but as you see somewhere i bug i think, image no boot anymore


    class MYInfoBarMYName(Screen):
    def __init__(self, session):
    Screen.__init__(self, session)


    self["myowntext"] = Label(_('MyOwnText!'))



    no log of crash... can u give onemore example with eLabel in infobar Skin Section?

    Ok I


    added


    Infobar.py


    Python
    from MY.MY_infobar import MYInfoBarMYName


    Code
    class InfoBar(...............all orginal...  , MYInfoBarMYName ):


    Code
    for x in HelpableScreen, \
    ..... all orginal... , MYInfoBarMYName:



    and


    MY_Infobar.py






    but nothink :frowning_face: image no boot...

    yes it is


    <screen name="InfoBar" position="0,0" size="720,576" flags="wfNoBorder" title="InfoBar">
    <eLabel position="0,0" zPosition="-3" size="720,576" backgroundColor="transparent" />


    ....




    <widget name="myowntext" render="Label" position="345,86" zPosition="2" size="290,20" font="Regular;18" valign="top" halign="right" transparent="1" foregroundColor="LabelForegroundText_1"/>



    </screen>


    Because it is eLabel only for infbar :smiling_face:



    Is it need modification on Infobar.py, Isn't it ?

    enigma Crash Log



    in In my skin.xml


    Code
    <widget name="myowntext" render="Label" position="345,86" zPosition="2" size="290,20" font="Regular;18" valign="top" halign="right" transparent="1" foregroundColor="LabelForegroundText_1"/>




    Source:



    And inside my simple code




    For example



    my "wdiget" it will be name of somethink from file



    Code
    myfile = os.path.exists('/tmp/text.info'
    		if myfile:
    			myfile = file('/tmp/text.info', 'r')
                		thisfile = myfile.read()
                		myfile.close()
    			self["myowntext"] = Label(thisfile)
    		else:
    			self["myowntext"] = Label(_('Sorry file does not exist!'))



    And I can not this widgets shows in Infobar :frowning_face: it should re-read file like eTimer in enigma 1


    myfile = file('/tmp/text.info', 'r')


    Thx for Help

    #
    from enigma import *
    from Screens.Screen import Screen
    from Screens.MessageBox import MessageBox
    from Screens.InputBox import InputBox
    from Screens.ChoiceBox import ChoiceBox
    from Components.ActionMap import ActionMap, NumberActionMap
    from Components.ScrollLabel import ScrollLabel
    from Components.GUIComponent import *
    from Components.MenuList import MenuList
    from Components.Input import Input
    from Screens.Console import Console
    from Plugins.Plugin import PluginDescriptor
    from Screens.ImageWizard import ImageWizard
    from Plugins.Plugin import PluginDescriptor
    from EXTRAS2 import *
    import os



    def main(session,**kwargs):
    try:
    session.open(EXTRAS)


    def Plugins(**kwargs):
    return PluginDescriptor(
    name="EXTRAS",
    description="plugin to do cron daemon management",
    where = PluginDescriptor.WHERE_PLUGINMENU,
    fnc = main
    )



    class EXTRAS(Screen):
    skin = """
    <screen position="100,100" size="500,400" title="EXTRAS Menu" >
    <widget name="menu" position="10,10" size="490,390" scrollbarMode="showOnDemand" />
    </screen>"""

    def __init__(self, session, args = 0):
    self.skin = EXTRAS.skin
    self.session = session
    Screen.__init__(self, session)
    self.menu = args
    list = []
    list.append((_("Menu 2"), "addwizzard"))
    self["menu"] = MenuList(list)
    self["actions"] = ActionMap(["WizardActions", "DirectionActions"],{"ok": self.go,"back": self.close,}, -1)

    def go(self):
    returnValue = self["menu"].l.getCurrentSelection()[1]
    if returnValue is not None:
    if returnValue is "addwizzard":
    EXTRAS2(self.session)




    I ve got question



    How can I run 2nd Menu from Another file ??


    EXTRAS2(self.session)



    EXTRAS2 it is name of Class in 2nd file


    but it doesn't works


    when i run only EXTRAS2 ( as a plugin ) it is working fine


    an idea?



    it seems it packed image but in


    /tmp/build/deploy/images


    there aren't any image :grinning_face_with_smiling_eyes:


    Way of dieter2 is ok htx



    But DreamMulitimedia devels, i think you know how to just pack image?? nothink else just pack??