Skip to content

Commit

Permalink
[display800] add PackageManager
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitarCC authored and Huevos committed Jan 25, 2024
1 parent e876d3d commit c40e27f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
7 changes: 7 additions & 0 deletions data/display800/skin_display_templates.xml
Expand Up @@ -437,5 +437,12 @@
<widget source="parent.summarytext" render="Label" position="40,0" size="720,100" foregroundColor="white" font="FdLcD;85" halign="center" valign="center" zPosition="2" />
<widget source="parent.summarylangname" render="Label" position="40,200" size="720,160" foregroundColor="white" font="FdLcDLight;65" halign="center" valign="top" zPosition="2" />
</screen>

<screen name="PackageManagerSummary" position="fill">
<widget source="Title" render="Label" position="top" size="*,180" font="FdLcD;60" halign="center" valign="center"/>
<widget source="parent.list" render="Label" position="fill" font="FdLcD;50" halign="center" valign="center">
<convert type="StringListSelection" />
</widget>
</screen>

</skin>
7 changes: 6 additions & 1 deletion lib/python/Plugins/SystemPlugins/ViX/PackageManager.py
Expand Up @@ -13,7 +13,7 @@

from Screens.Ipkg import Ipkg
from Screens.MessageBox import MessageBox
from Screens.Screen import Screen
from Screens.Screen import Screen, ScreenSummary
from Screens.Standby import TryQuitMainloop

from Tools.Directories import resolveFilename, SCOPE_PLUGINS, SCOPE_CURRENT_PLUGIN, SCOPE_CURRENT_SKIN
Expand Down Expand Up @@ -47,6 +47,11 @@ def load_cache(cache_file):
return pickle.load(open(cache_file, "rb"))


class PackageManagerSummary(ScreenSummary):
def __init__(self, session, parent):
ScreenSummary.__init__(self, session, parent=parent)


class PackageManager(Screen, NumericalTextInput):
skin = ["""
<screen name="PackageManager" position="center,center" size="%d,%d" title="Packet manager" >
Expand Down

0 comments on commit c40e27f

Please sign in to comment.