mirror of
https://github.com/gutosie/neoboot.git
synced 2025-10-26 08:56:06 +01:00
Add files via upload
This commit is contained in:
26
NeoBoot/__init__.py
Normal file
26
NeoBoot/__init__.py
Normal file
@@ -0,0 +1,26 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from __future__ import print_function
|
||||
from Components.Language import language
|
||||
from Tools.Directories import resolveFilename, SCOPE_PLUGINS, SCOPE_LANGUAGE
|
||||
import os, gettext
|
||||
PluginLanguageDomain = 'NeoBoot'
|
||||
PluginLanguagePath = 'Extensions/NeoBoot/locale'
|
||||
|
||||
def localeInit():
|
||||
lang = language.getLanguage()[:2]
|
||||
os.environ['LANGUAGE'] = lang
|
||||
print ("[NeoBoot] set language to "), lang
|
||||
gettext.bindtextdomain(PluginLanguageDomain, resolveFilename(SCOPE_PLUGINS, PluginLanguagePath))
|
||||
|
||||
|
||||
def _(txt):
|
||||
t = gettext.dgettext(PluginLanguageDomain, txt)
|
||||
if t == txt:
|
||||
print ("[NeoBoot] fallback to default translation for"), txt
|
||||
t = gettext.dgettext('enigma2', txt)
|
||||
return t
|
||||
|
||||
|
||||
localeInit()
|
||||
language.addCallback(localeInit)
|
||||
BIN
NeoBoot/__init__.pyo
Normal file
BIN
NeoBoot/__init__.pyo
Normal file
Binary file not shown.
7
NeoBoot/ex_init.py
Normal file
7
NeoBoot/ex_init.py
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
import sys, extract
|
||||
if len(sys.argv) < 16:
|
||||
pass
|
||||
else:
|
||||
extract.NEOBootMainEx(sys.argv[1], sys.argv[2], sys.argv[3], sys.argv[4], sys.argv[5], sys.argv[6], sys.argv[7], sys.argv[8], sys.argv[9], sys.argv[10], sys.argv[11], sys.argv[12], sys.argv[13], sys.argv[14], sys.argv[15], sys.argv[16])
|
||||
1445
NeoBoot/extract.py
Normal file
1445
NeoBoot/extract.py
Normal file
File diff suppressed because it is too large
Load Diff
BIN
NeoBoot/extract.pyo
Normal file
BIN
NeoBoot/extract.pyo
Normal file
Binary file not shown.
BIN
NeoBoot/neo_fhd.png
Normal file
BIN
NeoBoot/neo_fhd.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
BIN
NeoBoot/neo_hd.png
Normal file
BIN
NeoBoot/neo_hd.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
BIN
NeoBoot/neoinstal.mvi
Normal file
BIN
NeoBoot/neoinstal.mvi
Normal file
Binary file not shown.
BIN
NeoBoot/neologo.mvi
Normal file
BIN
NeoBoot/neologo.mvi
Normal file
Binary file not shown.
BIN
NeoBoot/neowait.mvi
Normal file
BIN
NeoBoot/neowait.mvi
Normal file
Binary file not shown.
336
NeoBoot/unpack.py
Normal file
336
NeoBoot/unpack.py
Normal file
@@ -0,0 +1,336 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
#from __init__ import _
|
||||
from Plugins.Extensions.NeoBoot.__init__ import _
|
||||
from Plugins.Extensions.NeoBoot.files.stbbranding import getNeoLocation, getKernelVersionString, getKernelImageVersion, getCPUtype, getCPUSoC, getImageNeoBoot, getBoxVuModel, getBoxHostName, getTunerModel
|
||||
from enigma import getDesktop
|
||||
from enigma import eTimer
|
||||
from Screens.Screen import Screen
|
||||
from Screens.Console import Console
|
||||
from Screens.MessageBox import MessageBox
|
||||
from Screens.ChoiceBox import ChoiceBox
|
||||
from Screens.VirtualKeyBoard import VirtualKeyBoard
|
||||
from Screens.Standby import TryQuitMainloop
|
||||
from Components.About import about
|
||||
from Components.Sources.List import List
|
||||
from Components.Button import Button
|
||||
from Components.ActionMap import ActionMap, NumberActionMap
|
||||
from Components.GUIComponent import *
|
||||
from Components.MenuList import MenuList
|
||||
from Components.Input import Input
|
||||
from Components.Label import Label
|
||||
from Components.ProgressBar import ProgressBar
|
||||
from Components.ScrollLabel import ScrollLabel
|
||||
from Components.Pixmap import Pixmap, MultiPixmap
|
||||
from Components.config import *
|
||||
from Components.ConfigList import ConfigListScreen
|
||||
from Tools.LoadPixmap import LoadPixmap
|
||||
from Tools.Directories import fileExists, pathExists, createDir, resolveFilename, SCOPE_PLUGINS
|
||||
from os import system, listdir, mkdir, chdir, getcwd, rename as os_rename, remove as os_remove, popen
|
||||
from os.path import dirname, isdir, isdir as os_isdir
|
||||
import os
|
||||
import time
|
||||
if fileExists('/etc/vtiversion.info') or fileExists('/usr/lib/python3.8') and fileExists('/.multinfo'):
|
||||
from Screens.Console import Console
|
||||
else:
|
||||
from Plugins.Extensions.NeoBoot.files.neoconsole import Console
|
||||
LinkNeoBoot = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot'
|
||||
|
||||
def getDS():
|
||||
s = getDesktop(0).size()
|
||||
return (s.width(), s.height())
|
||||
|
||||
def isFHD():
|
||||
desktopSize = getDS()
|
||||
return desktopSize[0] == 1920
|
||||
|
||||
def isHD():
|
||||
desktopSize = getDS()
|
||||
return desktopSize[0] >= 1280 and desktopSize[0] < 1920
|
||||
|
||||
def isUHD():
|
||||
desktopSize = getDS()
|
||||
return desktopSize[0] >= 1920 and desktopSize[0] < 3840
|
||||
|
||||
class InstallImage(Screen, ConfigListScreen):
|
||||
if isFHD():
|
||||
skin = """<screen position="130,120" size="1650,875" title="NeoBoot - Installation">
|
||||
<eLabel position="41,107" size="1541,2" backgroundColor="blue" foregroundColor="blue" name="linia" />
|
||||
<eLabel position="40,744" size="1545,2" backgroundColor="blue" foregroundColor="blue" name="linia" />
|
||||
<eLabel text="NeoBoot opcje dla instalowanego obrazu" font="baslk; 38" position="40,24" size="1538,74" halign="center" foregroundColor="red" backgroundColor="black" transparent="1" />
|
||||
<widget name="config" position="38,134" size="1547,593" font="genel; 32" itemHeight="42" scrollbarMode="showOnDemand" transparent="1" backgroundColor="transpBlack" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/redcor.png" position="84,820" size="178,28" alphatest="on" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/greencor.png" position="457,820" size="178,29" alphatest="on" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/yellowcor.png" position="884,823" size="169,28" alphatest="on" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/bluecor.png" position="1288,821" size="167,29" alphatest="on" />
|
||||
<widget name="HelpWindow" position="330,310" zPosition="5" size="1,1" transparent="1" alphatest="on" />
|
||||
<widget name="key_red" position="36,762" zPosition="1" size="284,53" font="baslk; 35" halign="center" valign="center" backgroundColor="#FF0000" transparent="1" foregroundColor="red" />
|
||||
<widget name="key_green" position="403,760" zPosition="1" size="293,55" font="baslk; 35" halign="center" valign="center" backgroundColor="#00FF00" transparent="1" foregroundColor="green" />
|
||||
<widget name="key_yellow" position="816,761" zPosition="1" size="295,54" font="baslk; 35" halign="center" valign="center" backgroundColor="#FFFF00" transparent="1" foregroundColor="yellow" />
|
||||
<widget name="key_blue" position="1233,760" zPosition="1" size="272,56" font="baslk; 35" halign="center" valign="center" backgroundColor="#0000FF" transparent="1" foregroundColor="blue" />\
|
||||
</screen>"""
|
||||
else:
|
||||
skin = """<screen position="0,0" size="1280,720" title="NeoBoot - Installation">
|
||||
<ePixmap position="0,0" zPosition="-1" size="1280,720" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/1frame_base-fs8.png" />
|
||||
<eLabel text="NeoBoot opcje dla instalowanego obrazu" font="Regular; 28" position="10,30" size="700,30" halign="center" foregroundColor="#58ccff" backgroundColor="black" transparent="1" />
|
||||
<widget name="config" position="0,150" size="780,450" font="Regular; 22" itemHeight="32" scrollbarMode="showOnDemand" transparent="1" backgroundColor="transpBlack" />
|
||||
<widget name="HelpWindow" position="100,500" zPosition="5" size="1,1" transparent="1" alphatest="on" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/red25.png" position="0,650" size="250,40" alphatest="blend" />
|
||||
<widget name="key_red" position="0,670" zPosition="2" size="250,40" font="Regular; 24" halign="center" backgroundColor="transpBlack" transparent="1" foregroundColor="white" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/green25.png" position="200,650" size="230,36" alphatest="blend" />
|
||||
<widget name="key_green" position="200,670" size="230,38" zPosition="1" font="Regular; 24" halign="center" backgroundColor="transpBlack" transparent="1" foregroundColor="white" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/yellow25.png" position="400,650" size="230,36" alphatest="blend" />
|
||||
<widget name="key_yellow" position="400,670" size="230,38" zPosition="1" font="Regular; 24" halign="center" backgroundColor="transpBlack" transparent="1" foregroundColor="white" />
|
||||
<widget name="key_blue" position="601,670" zPosition="1" size="230,38" font="baslk; 24" halign="center" valign="center" backgroundColor="#0000FF" transparent="1" foregroundColor="blue" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/blue25.png" position="600,650" size="230,36" alphatest="blend" />
|
||||
<widget source="session.VideoPicture" render="Pig" position=" 836,89" size="370,208" zPosition="3" backgroundColor="#ff000000"/>
|
||||
<ePixmap position="920,500" zPosition="1" size="228,130" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/1matrix.png" />
|
||||
</screen>"""
|
||||
|
||||
def __init__(self, session):
|
||||
Screen.__init__(self, session)
|
||||
fn = 'NewImage'
|
||||
sourcelist = []
|
||||
for fn in os.listdir('%sImagesUpload' % getNeoLocation() ):
|
||||
if fn.find('.zip') != -1:
|
||||
fn = fn.replace('.zip', '')
|
||||
sourcelist.append((fn, fn))
|
||||
continue
|
||||
if fn.find('.tar.xz') != -1:
|
||||
fn = fn.replace('.tar.xz', '')
|
||||
sourcelist.append((fn, fn))
|
||||
continue
|
||||
if fn.find('.tar.gz') != -1:
|
||||
fn = fn.replace('.tar.gz', '')
|
||||
sourcelist.append((fn, fn))
|
||||
continue
|
||||
if fn.find('.tar.bz2') != -1:
|
||||
fn = fn.replace('.tar.bz2', '')
|
||||
sourcelist.append((fn, fn))
|
||||
continue
|
||||
if fn.find('.mb') != -1:
|
||||
fn = fn.replace('.mb', '')
|
||||
sourcelist.append((fn, fn))
|
||||
continue
|
||||
if fn.find('.nfi') != -1:
|
||||
fn = fn.replace('.nfi', '')
|
||||
sourcelist.append((fn, fn))
|
||||
continue
|
||||
if len(sourcelist) == 0:
|
||||
sourcelist = [('None', 'None')]
|
||||
self.source = ConfigSelection(choices=sourcelist)
|
||||
self.target = ConfigText(fixed_size=False)
|
||||
self.stopenigma = ConfigYesNo(default=False)
|
||||
self.CopyFiles = ConfigYesNo(default=True)
|
||||
self.CopyKernel = ConfigYesNo(default=True)
|
||||
self.TvList = ConfigYesNo(default=False)
|
||||
self.LanWlan = ConfigYesNo(default=False)
|
||||
self.Sterowniki = ConfigYesNo(default=False)
|
||||
self.InstallSettings = ConfigYesNo(default=False)
|
||||
self.ZipDelete = ConfigYesNo(default=False)
|
||||
self.RepairFTP = ConfigYesNo(default=False)
|
||||
self.SoftCam = ConfigYesNo(default=False)
|
||||
self.MediaPortal = ConfigYesNo(default=False)
|
||||
self.PiconR = ConfigYesNo(default=False)
|
||||
self.Kodi = ConfigYesNo(default=False)
|
||||
self.BlackHole = ConfigYesNo(default=False)
|
||||
self.target.value = ''
|
||||
self.curselimage = ''
|
||||
try:
|
||||
if self.curselimage != self.source.value:
|
||||
self.target.value = self.source.value[:-13]
|
||||
self.curselimage = self.source.value
|
||||
except:
|
||||
pass
|
||||
|
||||
self.createSetup()
|
||||
ConfigListScreen.__init__(self, self.list, session=session)
|
||||
self.source.addNotifier(self.typeChange)
|
||||
self['actions'] = ActionMap(['OkCancelActions',
|
||||
'ColorActions',
|
||||
'CiSelectionActions',
|
||||
'VirtualKeyboardActions'], {'cancel': self.cancel,
|
||||
'red': self.cancel,
|
||||
'green': self.imageInstall,
|
||||
'yellow': self.HelpInstall,
|
||||
'blue': self.openKeyboard}, -2)
|
||||
self['key_green'] = Label(_('Install'))
|
||||
self['key_red'] = Label(_('Cancel'))
|
||||
self['key_yellow'] = Label(_('Help'))
|
||||
self['key_blue'] = Label(_('Keyboard'))
|
||||
self['HelpWindow'] = Pixmap()
|
||||
self['HelpWindow'].hide()
|
||||
|
||||
def createSetup(self):
|
||||
self.list = []
|
||||
self.list.append(getConfigListEntry(_('Source Image file'), self.source))
|
||||
self.list.append(getConfigListEntry(_('Image Name'), self.target))
|
||||
self.list.append(getConfigListEntry(_('Stop E2 processes during installation?'), self.stopenigma))
|
||||
self.list.append(getConfigListEntry(_('Copy files from Flash to the installed image ?'), self.CopyFiles ))
|
||||
self.list.append(getConfigListEntry(_('Copy the kernel of the installed system (recommended ?'), self.CopyKernel ))
|
||||
self.list.append(getConfigListEntry(_('Copy the channel list ?'), self.TvList))
|
||||
self.list.append(getConfigListEntry(_('Copy network settings LAN-WLAN ?'), self.LanWlan))
|
||||
self.list.append(getConfigListEntry(_('Copy the drivers ? (Recommended only other image.)'), self.Sterowniki))
|
||||
self.list.append(getConfigListEntry(_('Copy Settings to the new Image'), self.InstallSettings))
|
||||
self.list.append(getConfigListEntry(_('Delete Image zip after Install ?'), self.ZipDelete))
|
||||
self.list.append(getConfigListEntry(_('Repair FTP ? (Recommended only other image if it does not work.)'), self.RepairFTP))
|
||||
self.list.append(getConfigListEntry(_('Copy config SoftCam ?'), self.SoftCam))
|
||||
self.list.append(getConfigListEntry(_('Copy MediaPortal ?'), self.MediaPortal))
|
||||
self.list.append(getConfigListEntry(_('Copy picon flash to image install ?'), self.PiconR))
|
||||
self.list.append(getConfigListEntry(_('Transfer kodi settings ?'), self.Kodi))
|
||||
self.list.append(getConfigListEntry(_('Path BlackHole ? (Not recommended for VuPlus)'), self.BlackHole))
|
||||
|
||||
def HelpInstall(self):
|
||||
self.session.open(HelpInstall)
|
||||
|
||||
def typeChange(self, value):
|
||||
self.createSetup()
|
||||
self['config'].l.setList(self.list)
|
||||
if self.curselimage != self.source.value:
|
||||
self.target.value = self.source.value[:-13]
|
||||
self.curselimage = self.source.value
|
||||
|
||||
def openKeyboard(self):
|
||||
sel = self['config'].getCurrent()
|
||||
if sel:
|
||||
if sel == self.target:
|
||||
if self['config'].getCurrent()[1].help_window.instance is not None:
|
||||
self['config'].getCurrent()[1].help_window.hide()
|
||||
self.vkvar = sel[0]
|
||||
if self.vkvar == _('Image Name'):
|
||||
self.session.openWithCallback(self.VirtualKeyBoardCallback, VirtualKeyBoard, title=self['config'].getCurrent()[0], text=self['config'].getCurrent()[1].value)
|
||||
return
|
||||
|
||||
def VirtualKeyBoardCallback(self, callback = None):
|
||||
if callback is not None and len(callback):
|
||||
self['config'].getCurrent()[1].setValue(callback)
|
||||
self['config'].invalidate(self['config'].getCurrent())
|
||||
return
|
||||
|
||||
def imageInstall(self):
|
||||
pluginpath = '' + LinkNeoBoot + ''
|
||||
myerror = ''
|
||||
source = self.source.value.replace(' ', '')
|
||||
target = self.target.value.replace(' ', '')
|
||||
for fn in os.listdir('%sImageBoot' % getNeoLocation()):
|
||||
if fn == target:
|
||||
myerror = _('Sorry, an Image with the name ') + target + _(' is already installed.\n Please try another name.')
|
||||
continue
|
||||
|
||||
if source == 'None':
|
||||
myerror = _('You have to select one Image to install.\nPlease, upload your zip file in the folder: %sImagesUpload and select the image to install.')
|
||||
if target == '':
|
||||
myerror = _('You have to provide a name for the new Image.')
|
||||
if target == 'Flash':
|
||||
myerror = _('Sorry this name is reserved. Choose another name for the new Image.')
|
||||
if len(target) > 30:
|
||||
myerror = _('Sorry the name of the new Image is too long.')
|
||||
if myerror:
|
||||
myerror
|
||||
self.session.open(MessageBox, myerror, MessageBox.TYPE_INFO)
|
||||
else:
|
||||
myerror
|
||||
message = "echo -e '"
|
||||
message += _('NeoBot started installing new image.\n')
|
||||
message += _('The installation process may take a few minutes.\n')
|
||||
message += _('Please: DO NOT reboot your STB and turn off the power.\n')
|
||||
message += _('Please, wait...\n')
|
||||
message += "'"
|
||||
cmd1 = 'python ' + pluginpath + '/ex_init.py'
|
||||
cmd = '%s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s ' % (cmd1,
|
||||
source,
|
||||
target.replace(' ', '.'),
|
||||
str(self.stopenigma.value),
|
||||
str(self.CopyFiles.value),
|
||||
str(self.CopyKernel.value),
|
||||
str(self.TvList.value),
|
||||
str(self.LanWlan.value),
|
||||
str(self.Sterowniki.value),
|
||||
str(self.InstallSettings.value),
|
||||
str(self.ZipDelete.value),
|
||||
str(self.RepairFTP.value),
|
||||
str(self.SoftCam.value),
|
||||
str(self.MediaPortal.value),
|
||||
str(self.PiconR.value),
|
||||
str(self.Kodi.value),
|
||||
str(self.BlackHole.value))
|
||||
print '[NEO-BOOT]: ', cmd
|
||||
from Plugins.Extensions.NeoBoot.plugin import PLUGINVERSION
|
||||
self.session.open(Console, _('NeoBoot v.%s - Install new image') % PLUGINVERSION, [message, cmd])
|
||||
|
||||
def cancel(self):
|
||||
self.close()
|
||||
|
||||
|
||||
class HelpInstall(Screen):
|
||||
screenwidth = getDesktop(0).size().width()
|
||||
if screenwidth and screenwidth == 1920:
|
||||
skin = """<screen position="center,center" size="1920,1080" flags="wfNoBorder">
|
||||
<eLabel text="Informacje instalacji image w NeoBoot" font="baslk; 35" position="71,20" size="1777,112" halign="center" foregroundColor="yellow" backgroundColor="black" transparent="1" />
|
||||
<widget name="lab1" position="69,134" size="1780,913" font="baslk;35" />
|
||||
</screen>"""
|
||||
else:
|
||||
skin = """<screen position="center,center" size="1280,720" title="NeoBoot - Informacje">
|
||||
<widget name="lab1" position="18,19" size="1249,615" font="Regular;20" backgroundColor="black" transparent="1" />
|
||||
</screen>"""
|
||||
__module__ = __name__
|
||||
|
||||
def __init__(self, session):
|
||||
Screen.__init__(self, session)
|
||||
self['lab1'] = ScrollLabel('')
|
||||
self['actions'] = ActionMap(['WizardActions', 'ColorActions', 'DirectionActions'], {'back': self.close,
|
||||
'ok': self.close,
|
||||
'up': self['lab1'].pageUp,
|
||||
'left': self['lab1'].pageUp,
|
||||
'down': self['lab1'].pageDown,
|
||||
'right': self['lab1'].pageDown})
|
||||
self['lab1'].hide()
|
||||
self.updatetext()
|
||||
|
||||
def updatetext(self):
|
||||
|
||||
message = _('Source Image file')
|
||||
message += _(' - Select the software to be installed with the cursor (left or right).\n\n')
|
||||
|
||||
message += _('Image Name')
|
||||
message += _(' - to change, press blue on the remote control.\n\n')
|
||||
|
||||
message += _('Copy files from Flash to the installed image ?')
|
||||
message += _(' - this checking this option on it nothing will be copied from the image flash to the installed image in neoboot.\n\n')
|
||||
|
||||
message += _('Copy the kernel of the installed system (recommended ?')
|
||||
message += _('- after selecting this option, the kernel of the installed image will be copied to neoboot, only recommended for STB vuplus\n\n')
|
||||
|
||||
message += _('Copy the channel list ?')
|
||||
message += _(' - Option to copy channel list from flash to image installed in neoboot.\n\n')
|
||||
|
||||
message += _('Copy mounting disks ? (Recommended)')
|
||||
message += _(' - the option transfers mounts to the image installed in neoboot from the flashlight, recommended only if you are installing an image from a different model than you have.\n\n')
|
||||
|
||||
message += _('Copy network settings LAN-WLAN ?')
|
||||
message += _(' - the option moves files with the settings for lan and wlan.\n\n')
|
||||
|
||||
message += _('Copy the drivers ? (Recommended only other image.)')
|
||||
message += _(' - Option to copy drivers to the image installed in neoboot from the flashlight, recommended only if you are installing an image from a different model than you have.\n\n')
|
||||
|
||||
message += _('Copy Settings to the new Image')
|
||||
message += _(' - the option copies the software settings from the flashlight to the system being installed in the neobot.\n\n')
|
||||
|
||||
message += _('Delete Image zip after Install ?')
|
||||
message += _(' - po instalacji, opcja kasuje plik zip image z katalogu ImagesUpload.\n\n')
|
||||
|
||||
message += _('Repair FTP ? (Recommended only other image if it does not work.)')
|
||||
message += _(' - the option in some cases repairs the File Transfer Protocol connection in the installed image.\n\n')
|
||||
|
||||
message += _('Copy config SoftCam ?')
|
||||
message += _(' - the option copies oscam configi and cccam, openpli default.\n\n')
|
||||
|
||||
message += _('Copy picon flash to image install ?')
|
||||
message += _(' - cpuy picon from flash to image install in neoboot\n\n')
|
||||
|
||||
message += _('Path BlackHole ? (Not recommended for VuPlus)')
|
||||
message += _(' - option for image blackhole, helps to run BH in neoboot\n\n')
|
||||
|
||||
self['lab1'].show()
|
||||
self['lab1'].setText(message)
|
||||
|
||||
62
NeoBoot/usedskin.py
Normal file
62
NeoBoot/usedskin.py
Normal file
@@ -0,0 +1,62 @@
|
||||
|
||||
from Screens.Screen import Screen
|
||||
from Components.Pixmap import Pixmap
|
||||
import os
|
||||
|
||||
# skin /neoskins/matrix/matrix_skin.py - mod.gutosie
|
||||
|
||||
### ImageChooseFULLHD
|
||||
ImageChooseFULLHD ="""
|
||||
<screen name="NeoBootImageChoose" position="0,0" size="1920,1080" flags="wfNoBorder" backgroundColor="#ff111111">
|
||||
<widget source="Title" render="Label" position="97,50" size="1067,72" font="baslk;41" valign="bottom" foregroundColor="#00FFFFFF" backgroundColor="#1A0F0F0F" noWrap="1" transparent="1" />
|
||||
<widget name="label1" position="105,180" size="1050,45" font="genel;30" foregroundColor="#00DAA520" backgroundColor="#1A0F0F0F" halign="left" valign="center" zPosition="1" transparent="1" />
|
||||
<widget name="config" position="105,240" size="1050,255" itemHeight="51" font="genel;30" scrollbarMode="showOnDemand" foregroundColor="#00FFFFFF" backgroundColor="#1A0F0F0F" foregroundColorSelected="#00FFFFF" backgroundColorSelected="#1A27408B" scrollbarSliderBorderWidth="1" scrollbarWidth="8" scrollbarSliderForegroundColor="#00FFFFFF" scrollbarSliderBorderColor="#0027408B" enableWrapAround="1" transparent="1" />
|
||||
<eLabel position="105,510" size="1050,2" backgroundColor="#0027408B" />
|
||||
<widget name="label2" position="108,525" size="590,45" font="genel;30" foregroundColor="#00FFFFFF" backgroundColor="#1A0F0F0F" halign="left" valign="center" zPosition="1" transparent="1" />
|
||||
<widget name="label4" position="108,570" size="518,45" font="genel;30" foregroundColor="#00FFFFFF" backgroundColor="#1A0F0F0F" halign="left" valign="center" zPosition="1" transparent="1" />
|
||||
<widget name="label8" position="109,615" size="964,45" font="genel;30" foregroundColor="#00FFFFFF" backgroundColor="#1A0F0F0F" halign="left" valign="center" zPosition="1" transparent="1" />
|
||||
<widget name="label5" position="944,525" size="212,45" font="genel;30" foregroundColor="#0058CCFF" backgroundColor="#1A0F0F0F" halign="right" valign="center" zPosition="1" transparent="1" />
|
||||
<widget name="label6" position="633,570" size="522,45" font="genel;30" foregroundColor="#0058CCFF" backgroundColor="#1A0F0F0F" halign="right" valign="center" zPosition="1" transparent="1" />
|
||||
<widget name="label7" position="1089,615" size="66,45" font="genel;30" foregroundColor="#0058CCFF" backgroundColor="#1A0F0F0F" halign="center" valign="center" zPosition="1" transparent="1" />
|
||||
<widget name="label17" position="716,525" size="213,45" font="genel;30" foregroundColor="#0058CCFF" backgroundColor="#1A0F0F0F" halign="right" valign="center" zPosition="1" transparent="1" />
|
||||
<widget name="label19" position="130,879" size="1020,40" font="genel;30" halign="left" valign="center" zPosition="1" foregroundColor="#0058CCFF" backgroundColor="#1A0F0F0F" transparent="1" />
|
||||
<ePixmap position="1234,261" size="615,262" zPosition="5" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neoskins/metrix/skin/logo.png" transparent="1" alphatest="blend" />
|
||||
<ePixmap position="1260,583" size="564,262" zPosition="5" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neoskins/metrix/skin/neoAdam.png" transparent="1" alphatest="blend" />
|
||||
<eLabel position="105,675" size="1050,2" backgroundColor="#0027408B" />
|
||||
<ePixmap position="105,705" size="45,45" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neoskins/metrix/skin/key_1_FHD.png" zPosition="1" alphatest="blend" />
|
||||
<ePixmap position="105,756" size="45,45" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neoskins/metrix/skin/key_2_FHD.png" zPosition="1" alphatest="blend" />
|
||||
<ePixmap position="105,807" size="45,45" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neoskins/metrix/skin/key_3_FHD.png" zPosition="1" alphatest="blend" />
|
||||
<widget position="165,705" size="330,39" name="key_1" font="genel;30" foregroundColor="#00FFFFFF" backgroundColor="#1A0F0F0F" halign="left" valign="center" zPosition="1" transparent="1" />
|
||||
<widget position="165,756" size="330,39" name="key_2" font="genel;30" foregroundColor="#00FFFFFF" backgroundColor="#1A0F0F0F" halign="left" valign="center" zPosition="1" transparent="1" />
|
||||
<widget position="165,807" size="330,39" name="key_3" font="genel;30" foregroundColor="#00FFFFFF" backgroundColor="#1A0F0F0F" halign="left" valign="center" zPosition="1" transparent="1" />
|
||||
<widget name="device_icon" position="516,707" size="146,138" zPosition="1" transparent="1" alphatest="blend" />
|
||||
<widget name="label18" position="680,715" size="510,45" font="genel;28" foregroundColor="#00FFFFFF" backgroundColor="#1A0F0F0F" halign="left" valign="center" zPosition="1" transparent="1" />
|
||||
<widget name="progreso" position="683,766" size="332,15" borderWidth="0" foregroundColor="#00FFFFFF" backgroundColor="#1A0F0F0F" zPosition="2" transparent="1" />
|
||||
<eLabel position="684,774" size="330,2" backgroundColor="#00FFFFFF" zPosition="1" />
|
||||
<widget name="label11" position="680,790" size="510,45" font="genel;28" foregroundColor="#00FFFFFF" backgroundColor="#1A0F0F0F" halign="left" valign="center" zPosition="1" transparent="1" />
|
||||
<ePixmap position="1425,900" size="122,60" zPosition="10" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neoskins/metrix/skin/bt_menu_FHD.png" transparent="1" alphatest="blend" />
|
||||
<ePixmap position="1568,900" size="122,60" zPosition="10" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neoskins/metrix/skin/bt_ok_FHD.png" transparent="1" alphatest="blend" />
|
||||
<ePixmap position="1710,900" size="122,60" zPosition="10" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neoskins/metrix/skin/bt_exit_FHD.png" transparent="1" alphatest="blend" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neoskins/metrix/skin/btc_red_FHD.png" position="48,953" size="45,60" alphatest="blend" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neoskins/metrix/skin/btc_green_FHD.png" position="401,953" size="45,60" alphatest="blend" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neoskins/metrix/skin/btc_yellow_FHD.png" position="590,953" size="45,60" alphatest="blend" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neoskins/metrix/skin/btc_blue_FHD.png" position="967,953" size="45,60" alphatest="blend" />
|
||||
<widget name="key_red" position="100,957" size="327,45" noWrap="1" zPosition="1" valign="center" font="dugme;30" halign="left" backgroundColor="#1A0F0F0F" foregroundColor="#00FFFFFF" transparent="1" />
|
||||
<widget name="key_green" position="455,957" size="166,45" noWrap="1" zPosition="1" valign="center" font="dugme;30" halign="left" backgroundColor="#1A0F0F0F" foregroundColor="#00FFFFFF" transparent="1" />
|
||||
<widget name="key_yellow" position="647,957" size="349,45" noWrap="1" zPosition="1" valign="center" font="dugme;30" halign="left" backgroundColor="#1A0F0F0F" foregroundColor="#00FFFFFF" transparent="1" />
|
||||
<widget name="key_blue" position="1021,959" size="174,45" noWrap="1" zPosition="1" valign="cener" font="dugme;30" halign="feft" backgroundColor="#1A0F0F0F" foregroundColor="#00FFFFFF" transparent="1" />
|
||||
<eLabel position="39,38" zPosition="-10" size="1155,975" backgroundColor="#1A0F0F0F" name="layer1" />
|
||||
<eLabel position="1194,90" zPosition="-10" size="668,876" backgroundColor="#1A27408B" name="layer2" />
|
||||
<widget source="global.CurrentTime" render="Label" position="1636,119" size="210,90" font="tasat;75" noWrap="1" halign="center" valign="bottom" foregroundColor="#00FFFFFF" backgroundColor="#1A0F0F0F" transparent="1">
|
||||
<convert type="ClockToText">Default</convert>
|
||||
</widget>
|
||||
<widget source="global.CurrentTime" render="Label" position="1356,119" size="276,41" font="tasat;24" noWrap="1" halign="right" valign="bottom" foregroundColor="#00FFFFFF" backgroundColor="#1A0F0F0F" transparent="1">
|
||||
<convert type="ClockToText">Format:%A</convert>
|
||||
</widget>
|
||||
<widget source="global.CurrentTime" render="Label" position="1357,167" size="275,41" font="tasat;24" noWrap="1" halign="right" valign="bottom" foregroundColor="#00FFFFFF" backgroundColor="#1A0F0F0F" transparent="1">
|
||||
<convert type="ClockToText">Format:%e. %b.</convert>
|
||||
</widget>
|
||||
|
||||
</screen>
|
||||
|
||||
"""
|
||||
BIN
NeoBoot/usedskin.pyo
Normal file
BIN
NeoBoot/usedskin.pyo
Normal file
Binary file not shown.
Reference in New Issue
Block a user