diff --git a/NeoBoot/files/tools.py b/NeoBoot/files/tools.py index 2705b21..ef84766 100644 --- a/NeoBoot/files/tools.py +++ b/NeoBoot/files/tools.py @@ -1685,16 +1685,40 @@ class MyHelpNeo(Screen): class Opis(Screen): if isFHD(): - skin = """ """ + skin = """ + + + + + + + + + + + """ else: - skin = """""" + skin = """ + + + + + + + + + + + """ __module__ = __name__ def __init__(self, session): Screen.__init__(self, session) self['key_red'] = Label(_('Remove NeoBoot of STB')) + self['key_green'] = Label(_('Instal neoobot from github')) self['lab1'] = ScrollLabel('') self['actions'] = ActionMap(['WizardActions', 'ColorActions', 'DirectionActions'], {'back': self.close, 'red': self.delete, + 'green': self.neoinstallgithub, 'ok': self.close, 'up': self['lab1'].pageUp, 'left': self['lab1'].pageUp, @@ -1703,6 +1727,7 @@ class Opis(Screen): self['lab1'].hide() self.updatetext() + def updatetext(self): message = _('\\ NeoBoot Ver. ' + PLUGINVERSION + ' - NeoBoot Ver. updates ' + UPDATEVERSION + '//\n\n') message += _('1. Requirements: For proper operation of the device NeoBota are required USB stick or HDD.\n\n') @@ -1732,6 +1757,16 @@ class Opis(Screen): self['lab1'].show() self['lab1'].setText(message) + def neoinstallgithub(self): + message = _('Are you sure you want to reinstall neoboot from github ?') + ybox = self.session.openWithCallback(self.neogithub, MessageBox, message, MessageBox.TYPE_YESNO) + ybox.setTitle(_('Install.')) + + def neogithub(self, answer): + cmd1 = 'curl -kLs https://raw.githubusercontent.com/gutosie/neoboot/master/iNB.sh|sh' + self.session.open(Console, _('NeoBoot....'), [cmd1]) + self.close() + def delete(self): message = _('Are you sure you want to completely remove NeoBoota of your image?\n\nIf you choose so all directories NeoBoota will be removed.\nA restore the original image settings Flash.') ybox = self.session.openWithCallback(self.mbdelete, MessageBox, message, MessageBox.TYPE_YESNO)