deluge/plugins/ExamplePlugin/plugin.py

28 lines
535 B
Python
Raw Normal View History

2007-01-09 00:37:57 +00:00
#!/usr/bin/python
class plugin_Example:
2007-02-15 00:41:22 +00:00
def __init__(self, path, deluge_core, deluge_interface):
self.path = path
2007-01-09 00:37:57 +00:00
self.core = deluge_core
self.interface = deluge_interface
2007-02-14 22:43:48 +00:00
print "Example Plugin loaded"
2007-01-09 00:37:57 +00:00
def unload(self):
2007-02-14 22:43:48 +00:00
print "Example Plugin unloaded"
2007-01-09 00:37:57 +00:00
def update(self):
2007-02-14 22:43:48 +00:00
print "Hello World, from Example Plugin"
2007-01-09 00:37:57 +00:00
2007-02-14 22:43:48 +00:00
register_plugin("Example Plugin",
2007-01-09 00:37:57 +00:00
plugin_Example,
"0.2",
"An example plugin",
2007-02-15 18:30:28 +00:00
config=False,
2007-02-14 22:43:48 +00:00
default=False,
requires="0.5.0",
interface="gtk",
required_plugins=None)