Update of /cvsroot/freevo/freevo/Docs/plugin_writing/code In directory sc8-pr-cvs1:/tmp/cvs-serv8096/plugin_writing/code
Added Files: daemon.py daemon_action.py daemon_poll.py Log Message: first (very early) version --- NEW FILE: daemon.py --- class DaemonPlugin(Plugin): # Variables: self.poll_interval = 1 self.poll_menu_only = True self.event_listener = False # Functions def __init__(self): pass def poll(self): pass def draw(self(type, object), osd): pass def eventhandler(self, event, menuw=None): return False def shutdown(self): pass --- NEW FILE: daemon_action.py --- import plugin class FooReceiverPlugin(plugin.DaemonPlugin): """ Counting foo """ def __init__(self): DaemonPlugin.__init__(self) self.foo = 0 def eventhandler(self, event, menuw=None): if event == 'foo': self.foo += 1 return True return False --- NEW FILE: daemon_poll.py --- import plugin import rc from event import * class FooSenderPlugin(plugin.DaemonPlugin): """ Sending foo events """ def __init__(self): DaemonPlugin.__init__(self) self.poll_interval = 100 def poll(self): rc.post_event(Event('foo')) ------------------------------------------------------- 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