SystemPlugins/SoftwareManager: - add SoftwareTools.py to factor out some code.
[enigma2.git] / lib / python / Plugins / SystemPlugins / NetworkWizard / plugin.py
1 from Screens.Screen import Screen
2 from Plugins.Plugin import PluginDescriptor
3 from Components.config import getConfigListEntry, config
4
5 def NetworkWizardMain(session, **kwargs):
6         session.open(NetworkWizard)
7
8 def startSetup(menuid):
9         if menuid != "system": 
10                 return [ ]
11
12         return [(_("Network Wizard") + "...", NetworkWizardMain, "nw_wizard", 40)]
13
14 def NetworkWizard(*args, **kwargs):
15         from NetworkWizard import NetworkWizard
16         return NetworkWizard(*args, **kwargs)
17
18 def Plugins(**kwargs):
19         list = []
20         if config.misc.firstrun.value:
21                 list.append(PluginDescriptor(name=_("Network Wizard"), where = PluginDescriptor.WHERE_WIZARD, fnc=(25, NetworkWizard)))
22         return list