deluge/plugins/HelloWorld/plugin.py

20 lines
389 B
Python
Raw Normal View History

2007-02-15 21:30:17 +00:00
# A simple plugin to display Hello, World
2007-02-15 18:46:57 +00:00
class plugin_Hello:
def __init__(self, path, deluge_core, deluge_interface):
self.path = path
self.core = deluge_core
self.interface = deluge_interface
def unload(self):
2007-02-15 21:30:17 +00:00
pass
2007-02-15 18:46:57 +00:00
def update(self):
print "Hello, World!"
register_plugin("Hello World",
plugin_Hello,
"1.0",
'Displays "Hello, World"',
2007-02-15 21:30:17 +00:00
requires="0.5.0")