From: <di...@us...> - 2003-10-31 20:00:27
|
Update of /cvsroot/freevo/freevo/Docs/plugin_writing/code In directory sc8-pr-cvs1:/tmp/cvs-serv22642/code Added Files: doc.py item.py Log Message: more doc --- NEW FILE: doc.py --- import plugin class MyPlugin(plugin.Plugin): """ This is a short description And here should be a long description how this plugin works, how to activate it and what settings the user needs to add to the local_conf.py """ def __init__(self): pass --- NEW FILE: item.py --- import plugin import config class PluginInterface(plugin.ItemPlugin): def actions(self, item): if item.type == 'video': return [ (self.remove_sws, 'Remove Software Scaler'), (self.sws, 'Use Software Scaler') ] else: return [] def remove_sws(self, menuw=None, arg=None): config.MPLAYER_SOFTWARE_SCALER = '' menuw.back_one_menu() def sws(self, menuw=None, arg=None): config.MPLAYER_SOFTWARE_SCALER = "-subfont-text-scale 15 -fs -sws 0 "\ "-vf scale=%s:-3"\ " -font /usr/share/mplayer/fonts/"\ "font-arial-28-iso-8859-2/font.desc" % \ config.CONF.width menuw.back_one_menu() |