![]() |
openATV enigma2
openATV is an open source SetTopBox Graphical user interface.
|
Functions | |
| def | add_where_extensionsmenu (name, fnc) |
| def | add_where_pluginmenu (name, fnc) |
Variables | |
| internalname = input("Internal plugin name (no whitespaces, plugin directory): ") | |
| name = input("Visible plugin name: ") | |
| list | dirlist = [] |
| int | count = 0 |
| category = input("Select plugin category: ") | |
| list | wherelist = [("WHERE_EXTENSIONSMENU", add_where_extensionsmenu), ("WHERE_PLUGINMENU", add_where_pluginmenu)] |
| list | targetlist = [] |
| bool | stop = False |
| target = input("Select WHERE-target: ") | |
| string | pluginpath = category + "/" + internalname |
| makefile = open(category + "/Makefile.am", "r") | |
| lines = makefile.readlines() | |
| configure = open("../../../configure.ac", "r") | |
| line = configure.readline() | |
| file = open(pluginpath + "/plugin.py", "w") | |
| list | importlist = [] |
| list | mainlist = [] |
| list | descriptorlist = [] |
| list | where = targetlist[count] |
| def Plugins.newplugin.add_where_extensionsmenu | ( | name, | |
| fnc | |||
| ) |
| def Plugins.newplugin.add_where_pluginmenu | ( | name, | |
| fnc | |||
| ) |
| list Plugins.newplugin.category = input("Select plugin category: ") |
| Plugins.newplugin.configure = open("../../../configure.ac", "r") |
| int Plugins.newplugin.count = 0 |
| string Plugins.newplugin.descriptorlist = [] |
| list Plugins.newplugin.dirlist = [] |
| Plugins.newplugin.file = open(pluginpath + "/plugin.py", "w") |
| list Plugins.newplugin.importlist = [] |
| Plugins.newplugin.internalname = input("Internal plugin name (no whitespaces, plugin directory): ") |
| Plugins.newplugin.line = configure.readline() |
| list Plugins.newplugin.lines = makefile.readlines() |
| list Plugins.newplugin.mainlist = [] |
| Plugins.newplugin.name = input("Visible plugin name: ") |
| string Plugins.newplugin.pluginpath = category + "/" + internalname |
| bool Plugins.newplugin.stop = False |
| Plugins.newplugin.target = input("Select WHERE-target: ") |
| list Plugins.newplugin.targetlist = [] |
| list Plugins.newplugin.where = targetlist[count] |
| list Plugins.newplugin.wherelist = [("WHERE_EXTENSIONSMENU", add_where_extensionsmenu), ("WHERE_PLUGINMENU", add_where_pluginmenu)] |