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()
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog