openATV enigma2
openATV is an open source SetTopBox Graphical user interface.
Plugins.newplugin Namespace Reference

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]
 

Function Documentation

◆ add_where_extensionsmenu()

def Plugins.newplugin.add_where_extensionsmenu (   name,
  fnc 
)

◆ add_where_pluginmenu()

def Plugins.newplugin.add_where_pluginmenu (   name,
  fnc 
)

Variable Documentation

◆ category

list Plugins.newplugin.category = input("Select plugin category: ")

◆ configure

Plugins.newplugin.configure = open("../../../configure.ac", "r")

◆ count

int Plugins.newplugin.count = 0

◆ descriptorlist

string Plugins.newplugin.descriptorlist = []

◆ dirlist

list Plugins.newplugin.dirlist = []

◆ file

Plugins.newplugin.file = open(pluginpath + "/plugin.py", "w")

◆ importlist

list Plugins.newplugin.importlist = []

◆ internalname

Plugins.newplugin.internalname = input("Internal plugin name (no whitespaces, plugin directory): ")

◆ line

Plugins.newplugin.line = configure.readline()

◆ lines

list Plugins.newplugin.lines = makefile.readlines()

◆ mainlist

list Plugins.newplugin.mainlist = []

◆ makefile

Plugins.newplugin.makefile = open(category + "/Makefile.am", "r")

◆ name

Plugins.newplugin.name = input("Visible plugin name: ")

◆ pluginpath

string Plugins.newplugin.pluginpath = category + "/" + internalname

◆ stop

bool Plugins.newplugin.stop = False

◆ target

Plugins.newplugin.target = input("Select WHERE-target: ")

◆ targetlist

list Plugins.newplugin.targetlist = []

◆ where

list Plugins.newplugin.where = targetlist[count]

◆ wherelist

list Plugins.newplugin.wherelist = [("WHERE_EXTENSIONSMENU", add_where_extensionsmenu), ("WHERE_PLUGINMENU", add_where_pluginmenu)]