Ejemplo n.º 1
0
 def __init__(self, session, args=0):
     self.session = session
     Screen.__init__(self, session)
     self["setupActions"] = ActionMap(["SetupActions", "ColorActions"], {
         "cancel": self.cancel,
         "ok": self.keyOk,
     }, -2)
     self.setTitle(_("SphereFHD %s") % AtileHDInfo)
     self['skininfo'] = Label("")
     if path.exists(SkinPath + 'skin.config'):
         with open(SkinPath + 'skin.config', "r") as f:
             for line in f:
                 if line.startswith('description='):
                     self['skininfo'].text = line.split('=')[1].replace(
                         '"', '').replace("'", "").strip()
                     break
             f.close()
Ejemplo n.º 2
0
 def __init__(self, session, args = 0):
     self.session = session
     Screen.__init__(self, session)
     self["setupActions"] = ActionMap(["SetupActions", "ColorActions"],
         {
             "cancel": self.cancel,
             "ok": self.keyOk,
         }, -2)
     self.setTitle(_("UserSkin %s") % UserSkinInfo)
     self['skininfo'] = Label("")
     if path.exists(SkinPath + 'skin.config'):
         with open(SkinPath + 'skin.config', "r") as f:
             for line in f:
                 if line.startswith('description='):
                     self['skininfo'].text = line.split('=')[1].replace('"','').replace("'","").strip()
                     break
             f.close()
Ejemplo n.º 3
0
    def __init__(self, session, picPath = None):
        Screen.__init__(self, session)
        print '[sfteambckScreen] __init__\n'
        self.picPath = picPath
        self.Scale = AVSwitch().getFramebufferScale()
        self.PicLoad = ePicLoad()
        self['sftPic'] = Pixmap()
        self['information'] = Label('')
        self['information'].text = _('\n\n\n\nInstructions\n------------------------------\n\n1) Mount HDD in your receiver\n2) En caso necesario monte como HDD pulsando boton azul\n3) Click OK to start the process')
        self['actions'] = ActionMap(['OkCancelActions', 'ColorActions'], {'cancel': self.cancel,
	 'blue': self.mount,
         'green': self.preHaceBackup,
         'red': self.cancel}, -1)
        self['key_red'] = Label(_('Cancel'))
        self['key_green'] = Label(_('OK'))
	self['key_blue'] = Label(_('Mount'))
        self.PicLoad.PictureData.get().append(self.DecodePicture)
        self.onLayoutFinish.append(self.ShowPicture)
Ejemplo n.º 4
0
 def __init__(self, session, picPath=None):
     Screen.__init__(self, session)
     print '[sfteambckScreen] __init__\n'
     self.picPath = picPath
     self.Scale = AVSwitch().getFramebufferScale()
     self.PicLoad = ePicLoad()
     self['sftPic'] = Pixmap()
     self['information'] = Label('')
     self['information'].text = _(
         '\n\n\n\nInstructions\n------------------------------\n\n1) Mount HDD in your receiver\n2) En caso necesario monte como HDD pulsando boton azul\n3) Click OK to start the process'
     )
     self['actions'] = ActionMap(
         ['OkCancelActions', 'ColorActions'], {
             'cancel': self.cancel,
             'blue': self.mount,
             'green': self.preHaceBackup,
             'red': self.cancel
         }, -1)
     self['key_red'] = Label(_('Cancel'))
     self['key_green'] = Label(_('OK'))
     self['key_blue'] = Label(_('Mount'))
     self.PicLoad.PictureData.get().append(self.DecodePicture)
     self.onLayoutFinish.append(self.ShowPicture)
Ejemplo n.º 5
0
  def SetMessage(self, msg):
    if not self.has_key("Statusbar"):
      self["Statusbar"] = Label("")    

    self["Statusbar"].text = str(msg)
Ejemplo n.º 6
0
    def SetMessage(self, msg):
        if not self.has_key("Statusbar"):
            self["Statusbar"] = Label("")

        self["Statusbar"].text = str(msg)