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,
|
2007-03-18 16:23:08 +00:00
|
|
|
"Zach Tibbitts",
|
2007-02-15 18:46:57 +00:00
|
|
|
"1.0",
|
2007-03-18 16:23:08 +00:00
|
|
|
'Displays "Hello, World"')
|